PDF Landscape Format

Friends,
I have a program which writes a report. Since this is scheduled in the background, a spool is created. I am converting this spool into a PDF (function module CONVERT_ABAPSPOOLJOB_2_PDF) and sending this PDF as a mail attachment (function module SO_DOCUMENT_SEND_API1). The PDF which I am getting is in portrait format.
Can I get a PDF which is in Landscape format?
I tried customising function module CONVERT_ABAPSPOOLJOB_2_PDF and changing the standard layout from 'X_65_80' to 'X_90_120' but the PDF output is still portrait.
Please suggest a solution.
Warm Regards,
Sagar Satalkar

hai Mr.Sagar,
if it's possible means can u send me your code..to my personal ID (for this code)
[email protected]
(for smartform and abap editor program samrt styles)
thanks,
sn

Similar Messages

  • 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

  • PDF in Landscape format

    Hi,
    ESS is displaying a smartform as PDF.
    The smartform is generated in landscape format.
    And this is rendered in portal as PDF in portrait format.
    Do we have any way to render the PDF in landscape format?
    Regards,
    Nagaraju Donikena.

    Changing the attributes can solve this problem.
    We did the changes in R/3 to solve this issue.
    --Nagaraju Donikena

  • 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

  • When converting a document to PDF, it won't convert my landscape format !

    In Microsoft, when I convert a document that's in landscape format to a PDF, it converts in portrait format.  In the PDF I open print, select orientation and/or page setup, change the format but all the text does'nt change back to landscape.  How do I get my original format when converting to a PDF ?

    This isn't the proper forum for that. This is for the free Reader application which does not convert files to PDF.
    Depending on what you actually use to convert to PDF, you may need a Microsoft forum or the Adobe Acrobat forum.

  • PDF pages in landscape format like a book?

    I want my PDF file to be in landscape format. I don't mean that each page is landscape but the stacking of pages goes from left to right not top to bottom. I don't see an option for this. I would like to know how to do this two ways:
    1. When I create a PDF out of WORD documents.
    2. When I merge several PDF files into one Binder.
    I'm new to pdf's
    Hope this makes sense.
    Thanks so much!

    What you want is set up in the Print menu. when print window opens click on copies and pages and scroll down to two sided printing.
    Choose book setting. Tablet setting show image of a table with spiral ring at top.

  • Landscape formatting question

    Can anyone help me with a formatting question? I have a number of PDFs that are landscape format. Every time I open them they default to portrait, even when I change orientation in page set-up and re-save...

    You are only changing the view, not the pdf. Use the Rotate command in the Document menu, not the view menu.

  • Printing to Landscape format, not Portrait

    Hello,
    I'm trying to turn a PDF that was created in Landscape format
    into a Flash Paper SWF. When I drag the PDF onto Flash Paper, it
    creates a SWF but in a Portrait (print) format. This isn't
    acceptable because you can't read the content (unless you hold your
    laptop sideways for the whole thing). I didn't see an option
    anywhere in Flash Paper to set this. I imagine there must be a way
    to do this?

    After additional research I have found that the only way to get my labels to consistently print in landscape is to edit them with a previous version of Crystal.
    I had hoped that I could save to a previous version from Crystal 2008 but there is no option to do this. I was thinking this because MS Word and MS Excel can saave to previous versions (2007 will save to 95 etc.)
    Hope this helps others.
    Brad

  • View in Landscape format

    Hello,
    I have a PDF file where all of the pages display in portrait format.  I want to change some of the pages to display in landscape format.  I then want to save it so that when visitors to my website will view it in the format that I have set (either portrait or landscape).  I used to be able to do this Acrobat 8 Pro by rotating the pages the way I wanted them and then saving the PDF.  This doesn't seem to work in Acorbat 9 Pro.  Is there a way to accomplish this in Acrobat 9?

    Hi,
    This still should work in Acrobat 9. Select the page you want to rotate and select Document: Rotate Pages. . .
    Save the file.

  • EL7 - Black background in pdf - upright format

    In an exported pdf-presentation, a black background always fits the page to landscape format.
    But I want to use it in upright with a Tablet-PC, so the Page should not have a black background.
    Does anybody know how to disable this function so that the pages only include the in the editors made documents?
    Thanks for all replies!

    Hi,
    Can you please mention the exact steps and attach the sample file?
    Regards,
    Swarnima

  • SQL Plus command to print a report in Landscape format

    Hi,
    what is the SQL Plus command to print a report in Landscape format?

    841731 wrote:
    Hi,
    what is the SQL Plus command to print a report in Landscape format?SQLPlus doesn't print, and it doesn't know about 'landscape' vs. 'portrait' any more than it knows about fonts. the only 'formatting' it knows is line size, page size. And all it does with line size is know where to insert a CR/LF pair (windows) or a CR (*nix). The only thing it knows to do with page size is repeat column headers.
    The rest is up to whatever application you use to open the pure asciii text spool file.

  • Character mode Report in Landscape Format

    Hi All,
    I want to print my character mode report in landscape format. But I am not getting it. Everytime I get print as Portrait. I am printing from live previewer of report builder.
    I am using Oracle 9i and Report builder 6i (6.0.8.11.3).
    I have done following settings:
    System Parameter ORIENTATION=Landscape
    DESFORMAT=DECLAND.PRT (Given by Oracle)
    In the object navigator I have set following properties for Main Section
    Width=11
    Height=8.5
    Orientation=Landscape
    Char Mode Width=132
    Char Mode height=66
    I have done same settings for Header Section and Trailer Section. Please help me.
    Thanks in advance.
    Regards
    Mona

    You will need to edit prt files to add the printer escape sequences to change the page orientation to landscape. Printer escape sequences can be obtained from the printer manual, or the printer vendor.
    For instance, HP printer escape codes can be obtained from the HP website under the printer support links.
    The steps below describe how to print a landscape, character mode report from a Windows NT PC on an HP 4100N Printer. The 4100N is a dual mode printer that can use either PCL or Postscript printer language.
    1. Use a web browser to navigate to the HP website and obtain the printer escape codes for the HP 4100N. If you are unable to locate the HP4100N printer, look for generic PCL information. The HP site also includes detailed information on the printer command syntax.
    2. The HP4100N printer command for landscape page orientation is "ESC&l1O" - where ESC indicates escape, '&' (ampersand) is the parameterized character, 'l'(lower case letter l) is the group character, '1' (number one) is the printer value character and 'O' (upper case letter O) is the termination character.
    NOTE: The HP documentation uses "EC" to signify the escape character.
    It also suggests pressing CTRL and the letter P together, then
    releasing both keys and pressing the ESC key. If this is done in
    a dos editor, a left arrow will actually be displayed on screen.
    This character cannot be interpreted by Oracle Reports and will
    cause printing errors if used in a .prt file. Instead, just use
    the letters "ESC" to indicate that the code that follows is a printer
    escape sequence.
    3. Make a copy of the wide.prt file and rename it to "mywide.prt."
    4. Add the page orientation escapes to mywide.prt file:
    printer "mywide"
    height 66
    width 132
    before report esc "&l1O" *** Puts Page in Landscape Orientation***
    after page control(L)
    after report esc "&l0O" *** Resets page orientation to Portrait ***
    return control(M)
    linefeed control(J)
    SYNTAX NOTES: The escape sequence must be enclosed in double quotes ("). The above comments regarding page orientation are used to clarify where the escape codes gets added, but they should NOT be used when editing
    the actual .prt file.
    5. Save mywide.prt file to the $ORACLE_HOME\report60\printers\ directory.
    6. Go to Windows PC -> Start -> Settings -> Printers and open the properties for the HP printer. Ensure that the option to "Always Spool Raw Data" is checked. This option is usually under the General Printer
    Options, or Spool Options. On Windows NT, you must have Administrator privileges to change this setting.
    7. Test running the report to the printer and specify desformat mywide. It is not necessary to include the file extension (.prt).
    8. The report will now print in landscape orientation.

  • PDF image format?

    From what I understand, the PDF file format can contain text, vector graphics and raster graphics in many different formats. When I print to a PDF (via Save as PDF... in the print dialog box), what type of image format is actually used inside the PDF (which I assume is just a container format, really)?
    Say I come across a full quality RAW file from a 10-megapixel camera. If I open that image in an image editor and then print it as a PDF, what ends up in the PDF file? Is it a JPEG? A PNG? Some type of otherwise unknown lossless format?
    I assume the screenshot mechanism in OS X that saves to PDF uses similar technology. In that case, is a screenshot saved as a PDF better or worse quality than a PNG or JPEG (using a utility like TinkerTool to change the default screenshot format)?

    Actually, it doesn't matter what you set on a folio level. The article settings override the folio settings. The folio settings are supposed to appear as the default when you create articles, but it doesn't work that way at this time.

  • Function Module to send a mail in PDF/ XLS format

    Can you please tell me the name of a function module where a mail to be send in a non-sap box. And then mail which will be send is in a PDF/ XLS format.
    Regards,
    Subhasish

    Hi Subhasish,
    These are the FM for sending external email :-
    SO_DOCUMENT_SEND_API1 
    SAPoffice: Send new document with attachments via RFC 
    SO_NEW_DOCUMENT_ATT_SEND_API1
    (In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)
    SAPoffice: Send new document with attachments via RFC 
    Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject. 
    SO_NEW_DOCUMENT_SEND_API1 
    SAPoffice: Send new document 
    How to send a report to an external mail-id?
    Try this sample code :-
    REPORT ZREPORT_TO_EMAIL NO STANDARD PAGE HEADING LINE-SIZE 200.
    DATA : BEGIN OF ITAB OCCURS 0,
    PERNR LIKE PA0001-PERNR,
    ENAME LIKE PA0001-ENAME,
    END OF ITAB.
    DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
    receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
    packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
    listobject LIKE abaplist OCCURS 10,
    compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
    w_object_hd_change LIKE sood1,
    compressed_size LIKE sy-index.
    START-OF-SELECTION.
    SELECT PERNR ENAME
    INTO CORRESPONDING FIELDS OF TABLE ITAB
    FROM PA0001
    WHERE PERNR < 50.
    LOOP AT ITAB.
    WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
    SY-VLINE.
    ENDLOOP.
    Receivers
    receiver_list-recextnam = '[email protected]'. "-->
    EMAIL ADDRESS
    RECEIVER_list-RECESC = 'E'. "<-
    RECEIVER_list-SNDART = 'INT'."<-
    RECEIVER_list-SNDPRI = '1'."<-
    APPEND receiver_list.
    General data
    w_object_hd_change-objla = sy-langu.
    w_object_hd_change-objnam = 'Object name'.
    w_object_hd_change-objsns = 'P'.
    Mail subject
    w_object_hd_change-objdes = 'Message subject'.
    Mail body
    APPEND 'Message content' TO message_content.
    Attachment
    CALL FUNCTION 'SAVE_LIST'
    EXPORTING
    list_index = '0'
    TABLES
    listobject = listobject.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    compressed_size = compressed_size
    TABLES
    in = listobject
    out = compressed_attachment.
    DESCRIBE TABLE compressed_attachment.
    CLEAR packing_list.
    packing_list-transf_bin = 'X'.
    packing_list-head_start = 0.
    packing_list-head_num = 0.
    packing_list-body_start = 1.
    packing_list-body_num = sy-tfill.
    packing_list-objtp = 'ALI'.
    packing_list-objnam = 'Object name'.
    packing_list-objdes = 'Attachment description'.
    packing_list-objlen = compressed_size.
    APPEND packing_list.
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = w_object_hd_change
    object_type = 'RAW'
    owner = sy-uname
    TABLES
    objcont = message_content
    receivers = receiver_list
    packing_list = packing_list
    att_cont = compressed_attachment.
    Reward points if useful..
    Regards,
    Goutham.

  • Acrobat cannot open files in the "Adobe PDF document" format

    The document “example.pdf” could not be opened. Acrobat cannot open files in the “Adobe PDF document” format.
    Hi All,
    Running Acrobat Pro 9.4.2 on Snow Leopard, have never had this problem before. Showed up about a week ago, I believe with new update. Can't double click on a file in Finder, or drag and drop to AcrobatPro in Dock, but can open from within Acrobat Pro / File / Open command.
    All my preferences are correct with "Open With Acrobat Pro" as the default.
    I've read all the threads I can find with no answers yet.
    Anyone found and answer, I see a lot of us are going through this over the last year.
    Only possible common thread I have found is possibly HP printers. But I've been running HP printers all along with no issues.
    Thanks for you input.

    Moved to Acrobat Installation & Update Issues
    Either Acrobat needs to be re-installed or the file is named as a pdf file, but it is not a pdf file. Try opening the pdf file in a text editor and read off what the first line of the file is.

Maybe you are looking for

  • Screen not working and device not working properly!

    Npw im a careful person with mobile never had issues before  Earlier on in the day after just getting my phone today on contract with carephone warehouse i decided to do a little water test and take pics underwater , now the first thing i did was tes

  • Need help creating Room in KM

    I'm stuck while creating a room in KM. Although I have a cateory assigned, I get a error stating 'No category assigned'. Any ideas please? Thanks in advance. Vince

  • Adobe creativecloud desktop download application

    I am trying to download creative cloud software and then the desktop app pops up to tell me to sign in even though im already signed in on the website.  I then try to sign into the desktop application but it loads and then says im signed out and to s

  • VLD-0005: oracle.wh.repos.sdk.exceptions.WBValidationException  has occured

    Hi all, I get this error when validating the default control center. Detail info about installation About Oracle Warehouse Builder 11.2.0.1 OWB Tahoe Development Version 11.2.0.1 Build OWB_TAHOELC_LINUX_100121.2200.1.0.20 Copyright © 2000, 2009, Orac

  • Touchpad scrolls up before scrolling down

    I have an issue with a t410s. When i enter the finger on the upper right corner of the touchpad, from outside (screen side) the touchpad, first the screen scrolls very fast UP, and only after the finger reaches an area more down (near myself) it begi