Skip to Content
author's profile photo Former Member
Former Member

problem in pdf document

I am facing a strange problem while converting my report to pdf format.I am able to see the PDF document in adobe version 7,but in adobe version 8.1 i am getting the blank pdf if i open same document in version 8.1.

any idea which can help me out.......................

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 12:25 PM

    Hi

    try to add the given code in your program becuase you get the conversion problem.

    *&---------------------------------------------------------------------*
    *&      Form  conversion_of_size
    *&---------------------------------------------------------------------*
    *       text
    *----------------------------------------------------------------------*
    *  -->  p1        text
    *  <--  p2        text
    *----------------------------------------------------------------------*
    FORM conversion_of_size .
    *"Declaring Local Constants............................................
      CONSTANTS:
         cnv_hexconst_zero TYPE x VALUE '00'.
    
    *"--------------------------------------------------------------------*
    * Internal table to hold 255 Char's Single Line.                      *
    *"--------------------------------------------------------------------*
      DATA:
        lv_big_lines(268) TYPE c
                          OCCURS 0 WITH HEADER LINE.
    
    *"Local Work Variables.................................................
      DATA:
        lfl_flag          TYPE c,
        lv_left_t(268)    TYPE c,
        lv_left_i         TYPE i,
        tv_left_i         TYPE i,
        lv_curr_i         TYPE i.
    
      FIELD-SYMBOLS: <f>.
    
    * Get the lines into a table of 268 char as the first step to put it in
    * the pdf file of 255 chars
      CLEAR lfl_flag.
    
      LOOP AT pdf_tab INTO pdf_tab.
    
        IF lfl_flag EQ ' '.
          CLEAR lv_big_lines .
          ASSIGN lv_big_lines(134) TO <f>.
          <f> = pdf_tab.
          lfl_flag = 'X'.
        ELSE.
          lv_big_lines+134 = pdf_tab.
          APPEND lv_big_lines.
          CLEAR: lfl_flag.
        ENDIF.                             " If lfl_flag = ''..
    
      ENDLOOP.                             " Loop at t_pdf
    
      IF lfl_flag EQ 'X'.
        APPEND lv_big_lines.
      ENDIF.                               " If lflf_flag eq 'X'..
    
    * Next fill it into a 255 char table
      CLEAR: lv_left_t, lv_left_i, tv_left_i.
      lv_curr_i = 255.
    
      LOOP AT lv_big_lines.
        IF lv_left_i NE 0.
    
          IF lv_curr_i NE 0.
            wa_objcont(lv_left_i)           = lv_left_t(lv_left_i).
            wa_objcont+lv_left_i(lv_curr_i) = lv_big_lines(lv_curr_i).
          ELSE.
            wa_objcont = lv_left_t(lv_left_i).
          ENDIF.                           " IF lv_curr_i NE 0
    
        ELSE.
    
          wa_objcont = lv_big_lines(lv_curr_i).
    
        ENDIF.                             " IF lv_left_i NE 0
    
        APPEND wa_objcont TO t_objcont.
        tv_left_i = 268 - lv_curr_i.
    
        IF tv_left_i > 255.
          wa_objcont = lv_big_lines+lv_curr_i(255).
          APPEND wa_objcont TO t_objcont.
          lv_left_i = tv_left_i - 255.
          tv_left_i = 255 + lv_curr_i.
          lv_curr_i = 255 - lv_left_i.
          lv_left_t = lv_big_lines+tv_left_i.
        ELSE.
          lv_left_t = lv_big_lines+lv_curr_i.
          lv_left_i = 268 - lv_curr_i.
          lv_curr_i = 255 - lv_left_i.
        ENDIF.                             " IF tv_left_i > 255
    
      ENDLOOP.                             " LOOP AT lv_big_lines.
    
      CLEAR wa_objcont .
    
      ASSIGN wa_objcont(lv_left_i) TO <f>.
    
      <f> = lv_left_t(lv_left_i).
    
      APPEND wa_objcont TO t_objcont.
    
    ENDFORM.                    " conversion_of_size

    Rewards points if useful.

    Thanks and Regards

    Nikunj Shah

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 12:37 PM

    Hi,

    Could you explain how are you converting it to adobe 8.0 version.Because it might that the conversion is not version compatible.

    Regards,

    Nisrin.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.