Convert to PDF in landscape orientation

Hi experts !
I´m using the CONVERT_ABAPSPOOLJOB_2_PDF function to convert a txt into PDF, but i have not found, how to convert this
in landscape orientation, anybody can help me, pls.
Thanks in advanced !

Hi,
I never face this problem.
While searching i find some help for you.
Please visit this link. This link may contains solution for your problem.
Re: Downloading converted PDF file - output is truncated
May this helps you.
Regards.
Deepak Sharma.

Similar Messages

  • Export to PDF in landscape orientation

    Some of our discoverer reports have too many row headings so when exporting to PDF the user gets an error message basically saying that at least one data column must be printable on a page.
    We have turned on the Printable Page link and if the user sets orientation to Landscape there, the export works fine (for that session).
    Is there any URL parameter, config file edit, .uix file hack or other we can use to set the PDF orientation to landscape from start (every time)?
    Kind regards
    Tomas Albinsson
    Stockholm, Sweden

    I would look in the documentation under Viewer / Plus for changes that can be made to the configuration files on the server to see if this can be done.
    Admittedly, it doesn't sound like rocket science and I would have thought there'd be a section in one of the server config files to set 'landscape' as default.
    It may even be a setting in a config file on the server where the actual text has to be written in (ie: not already there with a setting of 0 or something), so unless someone knows the answer right away, I'd check the docs on config files.
    Russ

  • Unable to print PDF with landscape orientation

    This print problem seems to be unique only to Mac when printing a PDF from Acrobat or Reader. All the pages come out in portrait (tall) orientation when the doc orientation is landscape and all the print setup is checked for landscape printing. I have a Xerox Phaser 7760DX printer. I can print the same doc without any issue via my pc, but cannot print landscape via my Mac, which makes me wonder if this is an Acrobat or Xerox issue. I did already update to latest Phaser 7760DX driver, but still same result. Thank you in advance for your advice.

    Dont know the answer, but getting auto email notifications which I want stopped. Anyone know how? (I'm getting them from a bunch of messages)
    Thanks

  • Converting to PDF in landscape format

    Hello Friends ,
    I am doing an ALV grid report which needs to be sent to users Lotus Notes Inbox. I was successful in converting the report to PDF format and sending it to the inbox.
    The problem is that report has 15 columns . All these 15 columns are displayed in the PDF format but they are minimized . I need to zoom 200% to see all the columns .
    Is there a way it can be printed in Landscape format ??
    Any suggestions ?
    Here are the function modules i have used .
    CONVERT_ABAPSPOOLJOB_2_PDF
    Z_CONVERT_PDF_TO_MAIL_ATTACH.
    Please let me know .
    Thanks

    Hi,
    Check this code , we can re-format the data after getting data from FM : CONVERT_OTFSPOOLJOB_2_PDF
    *& Report  Y_SPOOL_TO_PDF                                             *
    REPORT  y_spool_to_pdf                         .
          CLASS lcl_pdf_demo_event_receiver DEFINITION
    CLASS lcl_pdf_demo_event_receiver DEFINITION.
      PUBLIC SECTION.
        DATA:
          entry_field1(100) TYPE c,
          entry_field2(100) TYPE c.
        METHODS:
          on_document_saved
            FOR EVENT document_saved OF cl_gui_pdfviewer
              IMPORTING file_path,
          on_viewing_finished
            FOR EVENT document_closing OF cl_gui_pdfviewer.
    ENDCLASS.                    "lcl_pdf_demo_event_receiver DEFINITION
          CLASS lcl_pdf_demo_event_receiver IMPLEMENTATION
    CLASS lcl_pdf_demo_event_receiver IMPLEMENTATION.
      METHOD on_document_saved.
        entry_field1 = 'Document Saved'.
        entry_field2 = file_path.
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'EVENT'.
      ENDMETHOD.                    "on_document_saved
      METHOD on_viewing_finished.
        entry_field1 = 'Viewing Finished'.
        entry_field2 = space.
        CALL METHOD cl_gui_cfw=>set_new_ok_code
          EXPORTING
            new_code = 'EVENT'.
      ENDMETHOD.                    "on_viewing_finished
    ENDCLASS.                    "lcl_pdf_demo_event_receiver IMPLEMENTATION
    DATA : l_lines       TYPE i,
             l_temp(500)   TYPE c,
             l_offset      TYPE p,
             l_lineslen(2) TYPE p,
             l_mimelen(2)  TYPE p,
             l_tabix       LIKE sy-tabix,
             l_bytecount  TYPE i,
             l_size TYPE i.
    DATA: it_pdf       LIKE tline OCCURS 10 WITH HEADER LINE,
          xi_pdf       LIKE tline OCCURS 0 WITH HEADER LINE,
          html         LIKE solisti1   OCCURS 0  WITH HEADER LINE,
          xi_temp      LIKE bapiqcmime OCCURS 0 WITH HEADER LINE,
          xi_mime(255) TYPE c OCCURS 0 WITH HEADER LINE,
           lt_doc  TYPE TABLE OF docs.
    DATA : url TYPE char255.
    DATA: my_pdf_viewer     TYPE REF TO cl_gui_pdfviewer,
           my_main_container TYPE REF TO cl_gui_custom_container,
           entry1(100) TYPE c,
           entry2(100) TYPE c.
    DATA: okcode TYPE sy-ucomm.
    DATA: l_event_receiver TYPE REF TO lcl_pdf_demo_event_receiver.
    PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'C:\temp\file.pdf'."#EC NOTEXT
    PARAMETERS : p_spool LIKE tsp01-rqident OBLIGATORY.
    START-OF-SELECTION.
    *-Convert OTF Spool to PDF
    if x_temp = ''.
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = p_spool
          no_dialog                = ' '
        IMPORTING
          pdf_bytecount            = l_bytecount
        TABLES
          pdf                      = it_pdf
        EXCEPTIONS
          err_no_otf_spooljob      = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_dstdevice        = 5
          user_cancelled           = 6
          err_spoolerror           = 7
          err_temseerror           = 8
          err_btcjob_open_failed   = 9
          err_btcjob_submit_failed = 10
          err_btcjob_close_failed  = 11.
      IF sy-subrc = 0.
        xi_pdf[] = it_pdf[].
      ELSE.
        xi_pdf[] = it_pdf[].
      ENDIF.
    else.
       CALL FUNCTION 'CONVERT_OTF_2_PDF'
         IMPORTING
           bin_filesize           = l_size
         TABLES
           OTF                    = it_otf
           DOCTAB_ARCHIVE         = lt_doc
           LINES                  = it_pdf
         EXCEPTIONS
           ERR_CONV_NOT_POSSIBLE  = 1
           ERR_OTF_MC_NOENDMARKER = 2
           OTHERS                 = 3.
       IF SY-SUBRC <> 0.
         v_retcode = 1.
         perform protocol_update. exit.
       else.
         xi_pdf[] = it_pdf[].
       endif.
    endif.
    -Reformat the line to 255 characters wide (code from SAP)
      CLEAR: l_temp, l_offset, xi_temp.
      DESCRIBE TABLE xi_pdf   LINES  l_lines.
      DESCRIBE FIELD xi_pdf   LENGTH l_lineslen IN CHARACTER MODE.
      DESCRIBE FIELD xi_temp  LENGTH l_mimelen IN CHARACTER MODE.
    <b>  LOOP AT xi_pdf.
        l_tabix = sy-tabix.
        MOVE xi_pdf TO l_temp+l_offset.
        IF l_tabix = l_lines.
          l_lineslen = STRLEN( xi_pdf ).
        ENDIF.
        l_offset = l_offset + l_lineslen.
        IF l_offset GE l_mimelen.
          CLEAR xi_temp.
          xi_temp = l_temp(l_mimelen).
          APPEND xi_temp.
          SHIFT l_temp BY l_mimelen PLACES.
          l_offset = l_offset - l_mimelen.
        ENDIF.
        IF l_tabix = l_lines.
          IF l_offset GT 0.
            CLEAR xi_temp.
            xi_temp = l_temp(l_offset).
            APPEND xi_temp.
          ENDIF.
        ENDIF.
      ENDLOOP.</b>
      LOOP AT xi_temp.
        xi_mime(255) = xi_temp-line.
        APPEND xi_mime.
      ENDLOOP.
    -Final Data
      html[] = xi_mime[].
      DATA : cancel.
      PERFORM download_w_ext(rstxpdft) TABLES html[]
                                       USING p_file
                                             '.pdf'
                                             'BIN'
                                             l_bytecount
                                             cancel.
      CALL SCREEN 100.
    *-Save spool in application server as pdf file
    open dataset p_file for output.
    if sy-subrc = 0.
       loop at html.
         transfer html to p_file.
         if sy-subrc <> 0.
           v_retcode = 1.
           perform protocol_update.
         endif.
       endloop.
       close dataset p_file.
       if sy-subrc <> 0.
         v_retcode = 1.
         perform protocol_update.
       endif.
       it_command_files = p_file.
       append it_command_files.
       clear it_command_files.
    else.
       v_retcode = 1.
       perform protocol_update.
    endif.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
    SET PF-STATUS 'xxxxxxxx'.
    SET TITLEBAR 'xxx'.
      IF my_main_container IS INITIAL.
        CREATE OBJECT my_main_container
          EXPORTING
            container_name = 'CUSTOM_CNTL'
          EXCEPTIONS
            cntl_error     = 1
            OTHERS         = 2.
        IF sy-subrc <> 0.
          EXIT.
        ELSE.
          CREATE OBJECT my_pdf_viewer
            EXPORTING
              parent              = my_main_container
            EXCEPTIONS
              cntl_error          = 1
              cntl_system_error   = 2
              OTHERS              = 3.
          IF sy-subrc <> 0.
            "could not create PDF Viewer
          ENDIF.
        ENDIF.
        DATA: view_buttons_active TYPE char01.
        IF my_pdf_viewer->acrobat_vs_reader = ''.
          view_buttons_active = 'X'.
        ENDIF.
       CALL METHOD my_pdf_viewer->create_toolbar
         EXPORTING
           tool_buttons      = 'X'
           view_buttons      = view_buttons_active
         EXCEPTIONS
           cntl_error        = 1
           cntl_system_error = 2
           OTHERS            = 3.
       IF sy-subrc <> 0.
         "could not create toolbar
       ENDIF.
        CREATE OBJECT l_event_receiver.
        SET HANDLER l_event_receiver->on_document_saved FOR my_pdf_viewer.
        SET HANDLER l_event_receiver->on_viewing_finished FOR my_pdf_viewer.
       IF NOT my_pdf_viewer->html_viewer IS INITIAL.
          url = p_file.
          CALL METHOD my_pdf_viewer->open_document
            EXPORTING
              url = url.
       ENDIF.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      LEAVE TO SCREEN 0.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    Regards
    Appana

  • Saving a PDF as landscape orientation

    I have a dynamically generated pfd. The content is set up for
    landscape but when I open it in the browser or in Acrobat it is a
    landscape document that is rendered in portrait. In acrobat I can
    go into view and tell it to be landscape, but when I save it, it
    reopens as portrait again.
    How can I take a pdf page that is in portrait and save it out
    so it opens up in landscape?

    I am having the same issue, but the link provided no longer goes to the manual referenced. Does anyone have any other ideas? I've created a landscape document in Illustrator CS4, go to print it as a PDF, and though it would print correctly, when I open the PDF it's tipped over sideways (portrait). What's up with that?

  • How to format the text  in a Digital Signature for a PDF in landscape orientation?

    I have a custom Digital Signature plug-in which prompts the user to enter few details on a dialog and then renders the signature. Now, the problem is for a page which has PDPageGetRotate value as 90. In this case, the entire content(text) in the signature is rendered reversed i.e its displayed upside down. However, for a page in portrait mode, i.e with rotation value as 0, signature is correctly displayed.
    Can anybody help me by explaining which callback/method to use to frame the text appearance? I think there needs to be some change in the parameters passed to DigSigAPCreateLayeredStreamEx, am i correct?
    Let me know any comments/suggestions on this issue of correctly rendering text in a digital signature for a rotated page.

    Just setup the appropriate transformation matrix.

  • How do I create a PDF in landscape orientation?

    Sorry for the noob question, but I can't figure out how to do this and my searches on the web aren't coming up with the right answer. I'm using Acrobat 9 Pro, thanks.

    Sorry, I should've clarified that I'm trying to create it from a blank page. I'm trying to create a template that includes a preset header and footer.

  • Export to pdf in landscape

    hello,
    i was wondering if there is a way to export a modelto pdf and use the landscape orientation instead of the portrait mode.
    thank you
    tracy
    17

    Hai
    Check this Links
    http://forums.devarticles.com/microsoft-sql-server-5/reporting-services-export-pdf-in-landscape-9209.html
    http://r.789695.n4.nabble.com/How-to-export-to-pdf-in-landscape-orientation-td3624851.html
    I hope it Helps U
    Thank u

  • I have a 2 page PDF (portrait format), how can I convert the format to landscape?

    I have a 2 page (portaait format) PDF file how can I convert the PDF file into landscape format before I change it to XL?

    Hi jsremick,
    To change the page orientation of a PDF, you need to use Acrobat. (Reader allows you to rotate the page view, but not the pages  themselves).
    If you don't have Acrobat, feel free to give it a try. You can download the free 30-day trial from http://www.adobe.com/products/acrobat.html.
    Best,
    Sara

  • Portrait/landscape orientation from MS Word to .pdf

    I just converted my first Word document to a .pdf with Adobe.com Air.  The Word doc was created in a portrait orientation, but the .pdf
    came out in a landscape orientation.  Can't figure out how to correct?

    The original was an MS Word document (.doc) created with page set up for portrait orientation.  It shows and prints
    in portrait orientation.  I converted to a .pdf on Adobe.com and the pdf file was in landscape.  When the pdf is viewed (previewed?)
    on Adobe.com, it appears in landscape.  It is a one page document and was never saved to any other format.  Since the original Word
    document is in the correct format, how would I alter the formating to re-upload and convert again?  I have attached both the .doc & .pdf files.

  • Not able to print pdf files into landscape orientation

    I am working on a R12 imnplementaion where I have to print labels on Zebra printer in landscape orientation using acroread through PASTA printing. Oracle Application uses xml publisher to generate these pdfs.  All the printouts come in portrait orientation even I choose landscape.  I have used acroread version 5 and 9.3.3. Can someone help me on this? I have used below syntaxes:
    I was using
    acroread -toPostScript -pairs -shrink -landscape BTLYOMSHIPLABEL_3479320_1.PDF BTLYOMSHIPLABEL_3479320_1.PS |lp -d label
    and It was not working.
    I found a hit on metalink and it says that we should not use –pairs in the command line.  If I remove –pairs, then we can’t pass {inline} {outline} parameters.  Then I have tried all the below commands:
    cat BTLYOMSHIPLABEL_3479320_1.PDF |acroread -toPostScript  -landscape |lp -d label
    cat BTLYOMSHIPLABEL_3479320_1.PDF |acroread -toPostScript  -shrink -landscape |lp -d label
    Thanks & Regards
    Swadesh

    Hi Swadesh,
    Try using the -rotateAndCenter option.
    cat A.pdf | acroread -toPostScript -shrink -rotateAndCenter | lp -d <PRINTERr>
    OR
    acroread  -toPostScript -pairs -shrink -rotateAndCenter A.pdf - | lp -d <PRINTER>
    Let me know if this helps.
    Regards,
    Rishi

  • PDF with Portait and Landscape Orientation act differently between pages

    Hi,
    I have issue when I'm trying to have a landscape orientation in a PDF with another portrait page.
    All I want to do is have a small page which indicates instructions on the form because it is a form builder, once the form is created by the user the landscape page gets hidden.
    My issue here is that when I set a masterpage to landscape it makes it different to switch between pages.
    I can't see more than 1 page at a time, just like it can't show a landscape and portait orientation together in the screen.
    I have another form with landscape and portait together and it works fine, but this form doesn't stay normal... There must be something I'm missing...
    It is annoying that I can't have more than one page in the screen, once I hit the bottom or the top of the page it switches automatically to the other page.
    Please help me on this, I'm trying to figure out what is causing this bug..

    Hi,
    I haven't used form builder, but do you still have a viewState, try adding the following line in the docReady event of the form
    event.target.viewState = { pageViewLayoutMode:2 };
    This has the same effect as setting Enable Scrolling on the View ... Page Display menu.
    A value of 1 would give you the single page view.
    Regards
    Bruce

  • Landscape oriented PDF prints only in Portrait mode

    I have a reporting application which displays to the user reports in PDF, some of them are in landscape orientation, but when the user prints the reports, they are fitted (shrunk) into a portrait orientation page. This is happening with Firefox 19 and the new embedded PDF viewer. Is there a way to resolve this problem?
    Thanks!

    I'm not asking for compensation I was making a point.
    A lot of the modern world rely on the internet and the tools provided to access it.
    A lot of company who have customers use the web to communicate or work with them, they sell applications or offer services based on the web technologies, they rely on the browsers used by their customers but can't impose them. So we rely on the seriousness of the browser regarding compliance to standards.
    I always trusted Mozilla and Firefox to be leaders in this field.
    I think that nonetheless the EULA we have right to have a compliant products so when a functionality replace without the will of the customer a working functionality it will 1) be compliant with the standard, 2) work as or better the element it replace. That is not the case with PDF.js.
    A lot of browser users are not used with tweaking parameters or settings to get back to something which was working.
    But be real PDF.js is not providing the services it's made for, it's a wor in progress ok! but it's a default feature, not a choice, and it breaks sites or applications functionalities that was working before it, that just my point. My PDF are working just fine with the acrobat reader plugin (for 3 years) and yes I'm upset because every thing was working and clients are now complaining that it does not work anymore. It's like with IE for ten years we are forced to find work arounds. The difference is that IE never worked like it should so we never trusted it but we trusted Firefox, which seems to be becoming less reliable.
    Have I the power to easily switch all the applications users to a more PDF compliant browser I will.

  • Combined Acrobat file - scanned PDF wrongly gets landscape orientation

    Online subscription Acrobat - when combining files, a scanned portrait-orientation PDF file is reformatted to landscape orientation, clipping contents at the bottom of the page. Is this a bug, or can I fix this?
    Frode

    One solution was to take the scanned PDF, open it in Reader, and "Print-to-PDF" it again but selecting Landscape orientation instead of automatic orientation.
    Frode

  • FrameMaker 10 Save as PDF and landscape pages

    Using FrameMaker 10 on Windows XP Professional SP3 32 bit system - When I use the Save as PDF function on a book containing both portrait and landscape pages, the landscape pages are clipped to portrait mode. If I print to Adobe PDF, the page orientation is correct in the PDF, however, no bookmarks are generated. If I check the Convert CMYK colorsto RGB setting in the PDF Setup for Selected Files dialog box, then the page orientation in the PDF is correct, and the bookmarks are generated as they were in FrameMaker 8.
    Is there a method to this madness?

    I have Acrobat 8 Pro. The explanation of the RGB mode with XP makes sense. I did not know that. Makes me wonder how Frame 8 was producing all the nice PDFs we have used for the last couple of years.
    I tried that setting because I saw others were having issues with that and wondered if there was a relationship between the two. Just a guess.
    Printing to a file and distilling it does not produce a PDF at all.
    Thanks for your help.

Maybe you are looking for

  • Test call of transport control program (tp) ended with return code 0012

    Hello, I have been trying to release directed a request with se09 transaction and TK094 error has appeared. Someone knows how solve this problem? Thanks

  • POPUP get date - wich name ?

    Hello, I need a popup to choose a data (with matchcode). I found it 'CNEV_01_POPUP_GET_DATE' It's run ok, but I would to change the title text ... I tried to copy and modify from standard, but the text title is not modified... Any other idea ? tks, r

  • Is it possible to order a Photo Book from iPhoto if I live in South Africa? What are my options?

    I live in South Africa and want to order a Photo Book that I made using iPhoto. But I can't seem to find a delivery option anywhere for international deliveries. HELP PLEASE!

  • NullPointerException on hasMore()

    I am calling hasMore() twice in a row, when the enumeration is at the end. So the first will return false but the second one will throw this exception: java.lang.NullPointerException      at com.sun.jndi.ldap.LdapNamingEnumeration.getNextBatch(LdapNa

  • Plug in missing---help

    I donwload a lot of pdfs from an on-line library data base.   Today I upgraded to Lion on my 6 mos. old AirMac and now I am getting the message "missing plug-in" and the document will not download.   I am stuck big time if I cannot do this.   What to