Mail Folder to PDF Conversion

How to convert mail folders (all contents of the folder) on the mac to a single PDF file.
Please let me know

This might be what you are looking for: Email Archiver, which archives emails as PDFs:
http://www.macupdate.com/app/mac/35278/email-archiver

Similar Messages

  • Changing the LiveCycle ES4 Launch Pad Output Folder for PDF Conversion

    I have an instance of Adobe Live Cycle ES4 on WebSphere installed on a Windows 2008 R2 server. We're leveraging the Launch Pad desktop GUI as a PDF conversion tool for our end users. The document to PDF conversion functionality is working great but the converted PDF files are automatically being stored on the end user's "AcrobatHub" folder. Example: C:\Users\Jsmith\AcrobatHub. 
    How do I modify and change the default output location for converted PDFs?

    Here is a sample for Tiff to PDF conversion using watched folder : http://help.adobe.com/en_US/livecycle/9.0/samples/ServiceUsageSamplePDFGenConvertTiffToPDF .html
    Thanks,
    Wasil

  • Acrobat 9 / Outlook 2007 - Convert  Mail Folder to PDF Crashes Outlook

    Procedure:
    Opened Outlook 2007, selected email folder, right clicked email folder, selected from menu: Convert "folder" to Adobe PDF, selected save
    Problem:
    After many successful such folder conversions, one email folder in particular caused Outlook 2007 to crash when half way through conversion
    Solution:
    Finally, upon about the 7th attempt, I noticed Outlook crashed when attempting to convert one particular email file (within the folder)
    The name of the offending email file was visible during the conversion process
    I reopened Outlook, examined the offending email and discovered it contained Japanese characters in the attachments
    I then deleted the offending email and recommenced the procedure
    All ran smoothly as per normal, Problem Solved!
    I hope this helps somebody out there

    I searched everywhere on the web for a solution and came up with nothing - so when I finally worked it out (simple in hindsight) I just had to make the post (my very 1st!).

  • Self-replicating PDF and jpeg files in my Library Mail folder--help!

    I've been to the Genius bar twice, just wiped my computer clean--and still my computer self-replicates PDF, documents, gif and jpeg files that exist on my hard drive in the Library-Mail folder every time I open the Mail program! The same ones, over and over--to the tune of about a half a gig of space every two days!
    I haven't seen anything on the Internet that relates to this specific issue--and at the Apple store, they had no idea how to help me.
    HELP?
    Thank you!

    Scott (et al),
    Please look in your Library folder (in your HOME folder) for a "Mail Downloads" folder. If it exists, drag it out to your Desktop, then replace it with a new folder of the same name. To be clear, you will drag the current "Mail Downloads" folder to your Desktop, then you will create a new folder in your Library folder. You will name the new folder "Mail Downloads."
    If the folder does not exist in your Library folder, create it yourself. Create a new folder in your Library folder, then name it "Mail Downloads."
    Try whatever is applicable to you, then test for the creation of these duplicate files in your "Mail" folder.
    Scott

  • Automated report/ PDF conversion with AppleScript

    Hello-
    I am attempting to PDF a spreadsheet from Dropbox, and email it to a set list of recipients with AppleScript.  Much of this I have been able to figure out, but I am having some issues with the PDF conversion.  As you can see below, I am still working on sending the xls file, and have not yet been able to get AppleScript to convert a specific tab of the file to aPDF.  I expect scheduling to be handled theough crontab.
    Current script is as follows:
    tell application "Finder"
              set folderPath to folder "Macintosh HD:Users:user:Dropbox:folder:Calculated PO Sheet"
              set theFile to first file in folderPath as alias
              set fileName to name of theFile
    end tell
    set theSubject to "Current PO Report" date
    set theBody to "See attached."
    set theAddress to "recipient email"
    set theAttachment to "CALCULATED PO SHEET.xlsx"
    set theSender to "sender email"
    tell application "Mail"
              set theNewMessage to make new outgoing message with properties{subject:theSubject, content:theBody & return & return, visible:true}
              tell theNewMessage
                        set visibile to true
                        set sender to theSender
      make new to recipient at end of to recipients with properties {address:theAddress}
                        try
      make new attachment with properties {file name:theAttachment} at after the last word ofthe last paragraph
                                  set message_attachment to 0
                        on error errmess -- oops
      log errmess -- log the error
                                  set message_attachment to 1
                        end try
                        log "message_attachment = " & message_attachment
      #send
              end tell
    end tell

    Hi,
    there is a special setup for this requirement. Please see the following support note
    Reference
    Oracle Reports Output For Indian Languages Like Gujarati, Marathi [ID 980554.1]
    Roberto

  • Smart form: Spool to PDF Conversion more than 100 pages.

    Hi folks,
    I have an issue with Function Module (FM) CONVERT_ABAPSPOOLJOB_2_PDF when the report to be converted has more than 100 pages.....i have explained this scenario as below
    We have been using the FM CONVERT_ABAPSPOOLJOB_2_PDF to convert ABAP report to PDF file and then send this via mail using FM SO_DOCUMENT_SEND_API1.....
    PDF conversion using FM CONVERT_ABAPSPOOLJOB_2_PDF works well if the number of report pages is less than 100....i.e the table pdf of the FM will contain the output as expected.....
    If the report has more than 100 pages, the the FM CONVERT_ABAPSPOOLJOB_2_PDF will schedule the conversion job as a background job and returns with a SY-subrc eq 0 and the table parameter pdf will ne empty.
    Could you suggest me a woorkaround in this situtaion...i.e how do I then get the output of the background job
    And  any process to convert Spool to PDF if having more than 100 pages.
    Thanks in Advance............

    Pb,
    If the report has more than 100 pages, the the FM CONVERT_ABAPSPOOLJOB_2_PDF will schedule the conversion job as a background job and returns with a SY-subrc eq 0 and the table parameter pdf will ne empty
    i would suggest you to if pages are more than 100 than you need to send report output to sp01 with spool request number by using fm job_open..job_close..
    than from sp01 you can convert pdf by running RSTXPDFT4 in se38.
    hope this would solve your problem.
    Amit.

  • Smartform to PDF conversion having issue with Russian address

    We are having a business situation we are the invoice in English language and the the address of ship-to party and sold-to party in Russian.
    The issue we face is.
    When the  smartform is converted to PDF the Russian specific characters are missing in the PDF output. The same are perfect in the smart form print preview.
    we are using   CONVERT_OTF function module and we are getting the Russian characters correctly in the table parameter OTF.
    We are using "SX_TABLE_LINE_WIDTH_CHANGE" and " SO_DOCUMENT_SEND_API1"
    function module to attach and mail the pdf.
    In the PDF we are missing the Russian specific characters .
    For Example in "Sedláčkova čč" the output is "Sedláčkova    " means "čč" is mising
    Thanks in advance
    Regards
    Joby

    Hi,
    As described in note 999712 - PDF conversion for Unicode, there is a new unicode PDF converter PDFUC.
    It depends on the SAP Version if you have to install the device type or not. You can check also via SPAD -> Full Administration -> Device Types -> Display.
    You can pass the device type in the output options. I used:
    SSFCTRLOP-no_dialog   = 'X'.
    SSFCTRLOP-getotf      = 'X'.
    SSFCTRLOP-langu       = 'EN'.
    SSFCOMPOP-tdprinter = 'PDFUC'.
    If you specify a device other than printer in the control options like SSFCTRLOP-device      = 'TELEFAX'., above will not work as
    SSFCOMPOP-tdprinter is only evaluated for printer.
    You have to check in SCOT -> Settings -> Device Types for Format Conversion.
    You can make a general entry or for a specific language:
    PDF                           SAPscript/Smart Forms    PDFUC
    PDF    EN    English    SAPscript/Smart Forms    PDFUC
    Let me know if you get this working.
    Jeroen.

  • Problem in PDF conversion of a Smartform

    Hi Experts,
    I have Chinese text and english text in the  Smartform
    When see print preview of Smartfrom the output is perfect
    But when i convert the OTF to PDF using  CONVERT_OTF FM and send as mail attachment,
    The chinese characters are JUNK and conversion don't occur properly.
    For english TEXT i use Times new roman font
    For Chinese Text i use CNSONG
    I have used other FM as well CONVERT_OTF_2_PDF, the results were negative.
    Please advise
    Regards
    Balaji R

    Hello Davide,
    We got this solution from SAP active global support.
    I suppose it works in some cases only.
    Our scenario is when we try to create PDF of the smartform using FM convert_otf and send as mail attachment.
    We can able to see chinese chracters when giving the print preview of the form, but during PDF conversion we get Junk chinese characters.
    Even if you have multiple languages in your form, SAP proposes to use 'ZPDFUC' as device type.
    My question has the solution proposed by you works in all cases?
    Please advise.Thanks.
    Best regards
    Balaji R

  • Sending PO in mail attachment with pdf format

    Hello,
    We are sending PO to vendor in a pdf attachment. The configuration is in place and as soon as the PO(ME22N) is saved the pdf mail is sent to vendor external mail address.
    The requirement however is to add some text to this mail body ( in addition to the existing PDF attachment ).
    The NACE config is using SAPFM06P program with entry_neu form and a custom sap script.
    can somebody help as where is this mail functionality added in this standard program so that I may try to customize the same for the above requirement.
    All I can see is 2 FM used in this ENTRY_NEU Form. Of which I guess ME_PRINT_PO is sending the mail ( I may be wrong here ) but where ?
    I will be thankful for any kind of hint to help solve this issue.

    In general you will have to do the following:
    1) Set NAST-NACHA = 8 (Special function)
    2) Before OPEN_FORM (maybe in In enhancement spot) if NAST-NACHA = 8, then set itcpo-tdgetotf = 'X' (to get OTF back from CLOSE_FORM!)
    3) During CLOSE_FORM, if NAST-NACHA = '8', get OTF output from TABLES parameter OTFDATA
    4) Convert this OTF output to PDF using following sample code:
    data: I_PDF STRUCTURE  TLINE occurs 0,
            I_OTF i_otf LIKE itcoo OCCURS 0.
        CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
                  format                = 'PDF'
                  max_linewidth         = 134
             IMPORTING
                  bin_filesize          = w_bytes
             TABLES
                  otf                   = i_otf
                  lines                 = i_pdf
             EXCEPTIONS
                  err_max_linewidth     = 1
                  err_format            = 2
                  err_conv_not_possible = 3
                  OTHERS                = 4.
    5) Send email with PDF attachment using the method(s) mentioned in one of these excellent blogs:
    /people/thomas.jung3/blog/2004/09/07/sending-e-mail-from-abap--version-46d-and-lower--api-interface
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    or you can follow below procedure as well:
    I suggest you make yourself very familiar with the SAP code that does this automatically. Once you understand the processing sequence SAP uses, it is much easier to add your customization and insert your enhancements. To debug it and step through the code, but a breakpoint in ENTRY_NEU, and process a PO. If you're sending your messages using a scheduled job, you'll hit the breakpoint when you process the message using RSNAST00. That's how I did it. I can tell you what I did to meet my requirements. You can change to meet your needs. It required a custom program, to use instead if ENTRY_NEU, and 3 enhancements to SAP code using the Enhancement Framework. You need to know how to use the framework. 1. configure your output type ZNE2 to to run a new program ZMRP_OUTCTRL, to run form routine ENTRY_ZNE2, to create form Z_PURCHASE_ORDER. 2. In ZMRP_OUTCTRL, call standard function modules, ME_READ_PO_FOR_PRINT and ME_PRINT_PO. 3. Drill down into ME_PRINT_PO to PREPARE_FORMULAR function module. Create new enhancement, and if NAST-KSCHL = ZNE2, then lookup the recipient's email address. Pass it as parameter to ADDR_GET_NEXT_COMM_TYPE. 4. Still in ME_PRINT_PO, PREPARE_FORMULAR, add another enhancement to set the value of itcpo-getotf to u2018Xu2019, to enable CLOSE_FORM to capture OTF data for PDF. Only set this OTF flag when the output is being run by RSNAST00, not when a user is simply previewing the printout. Sy-ucomm will be blank when RSNAST00 is running. 5. In ME_PRINT_PO, drill down to ENDE, and add an enhancement to check for NAST-KSCHL = ZNE2, and if so, call standard SAP function modules to END_FORM, START_FORM, WRITE_FORM, and END_FORM. Next call the function CLOSE_FORM, and set table parameter to capture the OTF_DATA as a table parameter OTF_DATA. 6. If OTF_DATA is found, then: If nast-kschl = 'ZNE2'. if NOT otf_data[] is initial. gs_OTF[] = otf_data[]. CALL FUNCTION 'CONVERT_OTF' EXPORTING format = 'PDF' IMPORTING bin_filesize = v_len_in TABLES otf = gs_otf lines = gt_pdf EXCEPTIONS err_max_linewidth = 1 err_format = 2 err_conv_not_possible = 3 OTHERS = 4. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'OTF Conversion failed.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'OTF Conversion failed.'. ENDIF. EXIT. ENDIF. CALL FUNCTION 'QCE1_CONVERT' TABLES T_SOURCE_TAB = gt_pdf T_TARGET_TAB = outbin. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'PDF Conversion failed.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'PDF Conversion failed.'. ENDIF. EXIT. ENDIF. *get email recipients (this is specific to my requirements) select single banfn ernam zuname1 into (lv_banfn, lv_ernam, lv_zuname ) from eban where ebeln = nast-objky. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'Requisition Data not found.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'Requisition Data not found.'. ENDIF. EXIT. ENDIF. 8. Build your OBJPACK and OBJBIN parameters: describe table mail_content lines lin. read table mail_content index lin. mail_data-doc_size = ( lin - 1 ) * 255 + STRLEN( mail_content ). clear objpack-transf_bin. objpack-head_start = 1. objpack-head_num = 0. objpack-body_start = 1. objpack-body_num = lin. objpack-doc_type = 'TXT'. APPEND objpack. describe table outbin lines lin. read table outbin index lin. objpack-doc_size = ( lin - 1 ) * 255 + strlen( outbin ). objpack-transf_bin = 'X'. objpack-head_start = 1. objpack-head_num = 0. objpack-body_start = 1. objpack-body_num = lin. objpack-doc_type = 'PDF'. objpack-obj_name = 'ATTACHMENT'. objpack-obj_descr = l_descr. APPEND objpack. CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING DOCUMENT_DATA = mail_data PUT_IN_OUTBOX = 'X' TABLES PACKING_LIST = objpack CONTENTS_BIN = outbin CONTENTS_TXT = mail_content RECEIVERS = receivers EXCEPTIONS TOO_MANY_RECEIVERS = 1 DOCUMENT_NOT_SENT = 2 DOCUMENT_TYPE_NOT_EXIST = 3 OPERATION_NO_AUTHORIZATION = 4 PARAMETER_ERROR = 5 X_ERROR = 6 ENQUEUE_ERROR = 7 OTHERS = 8. IF SY-SUBRC 0. p_retco = '1'. PERFORM protocol_update USING '303' 'Send Email function failed.' 'Output Message Cancelled.' space space. IF 1 = 2. MESSAGE S303(me) with 'Send Email function failed.'. ENDIF. EXIT. ENDIF. 9. Call function CLOSE_FORM, and end enhancement
    Edited by: Devireddy omkar on Aug 2, 2011 11:15 AM
    Edited by: Devireddy omkar on Aug 2, 2011 11:17 AM

  • PDF Conversion in sap for invoice

    Hi ,
    Help required in PDF conversion .
    Im using  OTFSPOOLREQUESTPDF to create the invoice form VF31 to PDF individually  and attach to mail .
    My requirement is for a range of Invoices I need in a single PDF of all the Invoices after VF31 BDC .
    Should I use some other Function module ?
    Kindly help .
    Regards
    Severina

    Yes  Madhu .
    I want all Invoices in single PDF file after VF31.
    Im  running BDC for VF31
    Calling the spool request from tsp01 table for the delivery invoice number  then using
    call function 'CONVERT_OTFSPOOLJOB_2_PDF'
        exporting
          src_spoolid              = wa_tsp01-rqident
          no_dialog                = 'X'
          pdf_destination          = 'X'
          no_background            = sy-batch
        importing
          bin_file                 = pdf_xstring
        tables
          pdf                      = it_tline
        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
          others                   = 12.
    After this Im attaching in in the mail.
    Regards
    Severina

  • Why is my user/lib/mail folder so big?

    Looking to streamline and access some space and a look at my user/lib/mail folder shows me it's over 500Mb even after a severe trimming from within Mail. I now have a total of 268 messages across all mailboxes, folders etc, and that includes a total of less than 20Mb of attachments but yet the mbox file in the INBOX and Sent Messages folders are still ~ 250Mb each. Deleted messages folder is empty and permissions etc repaired. Any ideas? Thanks

    The only items within a mailbox (i.e. within an .mbox or an .imapmbox folder) used by Mail 2.x are Info.plist and the Messages folder. Any other files you may see there (mbox in particular) are almost certainly Mail 1.x files that Mail 2.x leaves there after the conversion. This is poorly explained in Mac OS X 10.4 Mail: Some mailbox files used by Mac OS X 10.3 are not deleted after importing. The article only talks about mailboxes in ~/Library/Mail/Mailboxes/, but the same can also be said about mailboxes in “POP-”, “IMAP-”, or “Mac-” account folders.
    As long as you keep a backup copy of the old files for a while (at least, until you’re sure everything was converted properly), they can safely be removed from the Mail folder. OnyX has a Cleaning > Misc > Temporary and obsolete items option for getting rid of all those files.

  • PDF Conversion Truncated

    Hello, I have an issue when performing the Spool to PDF conversion.  I am using FM CONVERT_ABAPSPOOLJOB_2_PDF to convert an ALV list to a PDF file.  When I run my report in the foreground, everything works correctly, the PDF file is attached and then emailed to the appropriate recipient.  When I schedule the job to run in the background, the contents of the attachment that is created is truncated on the right side cutting off half of the report (the font is also larger).  I am out of ideas on how to solve this issue.  Any help would be appreciated.

    Hi,
    Use this code this work for you
    Please reward me if you find this answer is helpful
    *& Report  YSEND_MAIL_ATTACH
    REPORT  ysend_mail_attach  NO STANDARD PAGE HEADING  LINE-COUNT 65(2)
                                              LINE-SIZE 120.
    *TABLES/ DATA DECLARATION
    TABLES: tsp01,
            kna1.
    DATA: int_email_receivers LIKE zelift_user_3 OCCURS 0 WITH HEADER LINE.
    DATA: int_to_receivers TYPE zeinterface_mail-z_email_to OCCURS 0.
    DATA: wa_to_receivers  TYPE zeinterface_mail-z_email_to.
    DATA: int_mailsend TYPE soos1 OCCURS 0 WITH HEADER LINE.
    DATA: printer LIKE pri_params,
          mc_valid(1)      TYPE c,
          p_linsz LIKE sy-linsz VALUE 100,
          p_paart LIKE sy-paart VALUE  'X_65_132',
          mi_rqident       LIKE tsp01-rqident,
          mi_bytecount     TYPE i,
          prg_name LIKE sy-repid,
          user_name LIKE sy-uname,
          mtab_pdf    LIKE tline OCCURS 0 WITH HEADER LINE,
          mc_filename LIKE rlgrap-filename,
          req_no LIKE tsp01_sp0r-rqid_char,
          req_rc LIKE sy-subrc,
          nom_char(20),
          g_drc_diff.
    sending email stuff
    DATA: object_hd_change  TYPE sood1,
          object_type       TYPE sood-objtp,
          objcont           TYPE soli  OCCURS 0 WITH HEADER LINE,
          objhead           TYPE soli  OCCURS 0 WITH HEADER LINE,
          att_cont          TYPE soli  OCCURS 0 WITH HEADER LINE,
          att_head          TYPE soli  OCCURS 0 WITH HEADER LINE,
          packing_list      TYPE soxpl OCCURS 0 WITH HEADER LINE,
          receivers         TYPE soos1 OCCURS 0 WITH HEADER LINE,
         receivers         TYPE somlreci1 OCCURS 0 WITH HEADER LINE,
          free_recc         TYPE soos1 OCCURS 0 WITH HEADER LINE,
          object_id_new     TYPE soodk,
          sent_to_all       TYPE sonv-flag,
          all_binding_done  TYPE sonv-flag,
          office_object_key TYPE swotobjid-objkey,
          originator_id     TYPE soudk,
          objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
          doc_chng LIKE sodocchgi1,
          tab_lines LIKE sy-tabix,
          paylist LIKE bapi7004_rl OCCURS 0 WITH HEADER LINE,
          p_info LIKE  pc407,
          pdf_table LIKE tline OCCURS 0 WITH HEADER LINE,
          pdf_fsize TYPE  i,
          pdf_line(134),
          spoolid    TYPE tsp01-rqident.
    ***data declaration for sending the mail.
    ***data declaration for output display.
    DATA:BEGIN OF int_kna1 OCCURS 0,
         kunnr LIKE kna1-kunnr,
         land1 LIKE kna1-land1,
         name1 LIKE kna1-name1,
         END OF int_kna1.
    PARAMETERS p_kunnr LIKE kna1-kunnr.
    *start-of-selection
    START-OF-SELECTION.
    perform display.
    *pdf conversion.
      PERFORM pdf_conversion.
    END-OF-SELECTION.
          FORM get_spool_number *
          Get the most recent spool created by user/report              *
    -->  F_REPID               *
    -->  F_UNAME               *
    -->  F_RQIDENT             *
    FORM get_spool_number USING f_repid
         f_uname
                    CHANGING f_rqident.
      DATA:
        lc_rq2name LIKE tsp01-rq2name.
      CONCATENATE f_repid+0(9)
                  f_uname+0(3)
        INTO lc_rq2name.
      CONDENSE lc_rq2name.
      SELECT * FROM tsp01 WHERE  rq2name = lc_rq2name
    ORDER BY rqcretime DESCENDING.
        f_rqident = tsp01-rqident.
        EXIT.
      ENDSELECT.
      IF sy-subrc NE 0.
        CLEAR f_rqident.
      ENDIF.
    ENDFORM.                               " get_spool_number
    *---getting the spool created by user/report
    *&      Form  PDF_CONVERSION
          text
    -->  p1        text
    <--  p2        text
    FORM pdf_conversion.
    *-- Setup the Print Parmaters
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
         authority              = space
         copies                 = '1'
         cover_page             = space
         data_set               = space
         department             = space
         destination            = space
         expiration             = '1'
         immediately            = space
         in_archive_parameters  = space
         in_parameters          = space
         layout                 = space
         mode                   = space
         new_list_id            = 'X'
          no_dialog              = 'X'
          user                   = sy-uname
        IMPORTING
          out_parameters         = printer
          valid                  = mc_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
      IF printer-pdest = space.
        printer-pdest = 'LOCL'.
      ENDIF.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      printer-linsz = p_linsz.
      printer-linct = sy-linct.
      printer-paart = p_paart.
      printer-prrel = ' '.
      prg_name = 'YSEND_MAIL_ATTACH'.
      user_name = sy-uname.
      SUBMIT yidoc12 TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                       SPOOL PARAMETERS printer
                       WITH p_kunnr = p_kunnr
                       AND RETURN.
      PERFORM get_spool_number USING prg_name user_name
                CHANGING mi_rqident.
      IF sy-subrc = 0.
       IF sendmail = 'X'.
        req_no = mi_rqident.
        PERFORM spool_pdf_conversion.
        PERFORM sendmail.
       ENDIF.
      ENDIF.
      req_no = mi_rqident.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
        EXPORTING
          spoolid       = req_no
       IMPORTING
      RC            = req_rc
         status        = req_rc.
    IF req_rc <> 0.
      IF req_rc = 0.
        LEAVE PROGRAM.
      ENDIF.
    ENDFORM.                    " PDF_CONVERSION
    *****pdf conversion----
    *&      Form  SPOOL_PDF_CONVERSION
          text
    -->  p1        text
    <--  p2        text
    FORM spool_pdf_conversion.
      spoolid = req_no.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid              = spoolid
          no_dialog                = space
          dst_device               = printer-pdest
        IMPORTING
          pdf_bytecount            = pdf_fsize
        TABLES
          pdf                      = pdf_table
        EXCEPTIONS
          err_no_abap_spooljob     = 1
          err_no_spooljob          = 2
          err_no_permission        = 3
          err_conv_not_possible    = 4
          err_bad_destdevice       = 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
          OTHERS                   = 12.
    ENDFORM.                    " FILE_UPLOAD
    ********converting the spool job to pdf******************************
    *sending the mail as an attachment using the fm
    *&      Form  SENDMAIL
          text
    -->  p1        text
    <--  p2        text
    FORM sendmail.
      DATA : BEGIN OF lt_pdflns OCCURS 0.
              INCLUDE STRUCTURE  solisti1.
      DATA : END OF lt_pdflns.
      DATA: l_ind,
            l_nom_key_o LIKE oijnomi-nomtk.
    General header data.
      MOVE: sy-langu TO object_hd_change-objla,
            'Ext.email' TO object_hd_change-objnam,
            'C' TO object_hd_change-objsns,
            'TXT' TO object_hd_change-file_ext,
            'REQUIRED OUTPUT' TO object_hd_change-objdes.
    Body of the message itself (255).
      MOVE ' REPORT TESTING' TO objcont-line.
      APPEND objcont.
      CONCATENATE 'Time: ' sy-uzeit0(2) ':' sy-uzeit2(2) ':' sy-uzeit+4(2)
                  INTO objcont-line.
      APPEND objcont.
      MOVE: 'RAW' TO object_type.
      LOOP AT pdf_table.
        lt_pdflns = pdf_table.
        APPEND lt_pdflns.
        CLEAR lt_pdflns.
      ENDLOOP.
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_src              = 134
          line_width_dst              = 255
        TABLES
          content_in                  = lt_pdflns
          content_out                 = objbin
        EXCEPTIONS
          err_line_width_src_too_long = 1  "content_out
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          OTHERS                      = 4.
    DESCRIBE TABLE objbin LINES tab_lines.
    *get the mail ids for sending the emails.
    Fill email receivers
      IF int_email_receivers[] IS INITIAL.
        CALL FUNCTION 'ZEI_GET_INTERFACE_MAILIDS'
        EXPORTING
          program_name           = 'ZER02230_TSPPRA'
          interface              = 'TS_TMJ_REJ'
          key                    = 'NOMTK'
          value                  = 'FAILURE_RECEIVERS'
          DIRECTION              =
          NOTES                  =
         IMPORTING
          to_mail_recivers       = int_to_receivers
        CC_MAIL_RECIVERS       = int_cc_receivers
         EXCEPTIONS
          no_data_found          = 1
          OTHERS                 = 2
    Appending Email addresses if found.
        IF NOT int_to_receivers[] IS INITIAL.
          LOOP AT int_to_receivers INTO wa_to_receivers.
            MOVE wa_to_receivers TO int_mailsend-recextnam .
            int_mailsend-recesc = 'U'.
            int_mailsend-sndart = 'INT'.
            int_mailsend-sndpri = '1'.
            APPEND int_mailsend.
          ENDLOOP.
        ENDIF.
      ELSE.
        LOOP AT int_email_receivers.
          CONCATENATE   int_email_receivers '@exchange.aramco.com.sa' INTO
               int_mailsend-recextnam.
          int_mailsend-recesc = 'U'.
          int_mailsend-sndart = 'INT'.
          int_mailsend-sndpri = '1'..
          APPEND int_mailsend.
        ENDLOOP.
      ENDIF.
    **************end of the getting emails for sending the mails
      DESCRIBE TABLE objbin LINES tab_lines.
      MOVE: "'X'               TO packing_list-TRANSF_BIN,
             '1'               TO packing_list-head_start,
             '1'               TO packing_list-head_num,
             '1'               TO packing_list-body_start,
             tab_lines         TO packing_list-body_num,
             'RAW'             TO packing_list-objtp,
             'Attachment'      TO packing_list-objnam,
             'PDF' TO packing_list-file_ext.
      packing_list-objlen = tab_lines * 255.
      CONCATENATE 'REPORT TESTING' '--'
         sy-datum4(2) '/' sy-datum6(2) '/' sy-datum+0(4)
         sy-uzeit0(2) ':' sy-uzeit2(2) ':' sy-uzeit+4(2)
      INTO packing_list-objdes.
      APPEND packing_list.
      objhead = 'testing the email for pdf'.
      CALL FUNCTION 'SO_OBJECT_SEND'
        EXPORTING
          object_hd_change           = object_hd_change
          object_type                = object_type
        IMPORTING
          object_id_new              = object_id_new
          sent_to_all                = sent_to_all
          all_binding_done           = all_binding_done
          office_object_key          = office_object_key
          originator_id              = originator_id
        TABLES
          objcont                    = objcont
          objhead                    = objhead
          receivers                  = int_mailsend
          packing_list               = packing_list
          att_cont                   = objbin
          att_head                   = att_head
        EXCEPTIONS
          active_user_not_exist      = 1
          communication_failure      = 2
          component_not_available    = 3
          folder_not_exist           = 4
          folder_no_authorization    = 5
          forwarder_not_exist        = 6
          note_not_exist             = 7
          object_not_exist           = 8
          object_not_sent            = 9
          object_no_authorization    = 10
          object_type_not_exist      = 11
          operation_no_authorization = 12
          owner_not_exist            = 13
          parameter_error            = 14
          substitute_not_active      = 15
          substitute_not_defined     = 16
          system_failure             = 17
          too_much_receivers         = 18
          user_not_exist             = 19
          originator_not_exist       = 20
          x_error                    = 21
          OTHERS                     = 22.
      IF sy-subrc EQ 0.
        COMMIT WORK.
      ELSE.
        MESSAGE i014(ze9) WITH 'Email was not sent to the Recipients'.
      ENDIF.
    ENDFORM.                    " SENDMAIL
    ************sending mail as an attachment
    *for displaying
    form display.
    endform.
    *for displaying

  • Publisher image size reduced upon pdf conversion

    Last week I submitted a Publisher file of an advertisement for pdf conversion. When I opened the pdf and printed it out, the ad which had been, let's say, 4x7 inches, printed out about a quarter inch smaller in both width and height. When I e-mail it to the magazine publisher, how do they make the image fit the correct ad space? And how can I prevent this change in size next time?

    Check your print settings in Adobe Reader. Make sure have page
    scaling: none.
    Aandi Inston

  • Can you convert the Outlook 2010 Tasks folder to PDF?

    Hi All,
    Please can you let me know how to convert the Outlook 2010 Tasks folder to PDF?  When I select "Convert Selected Folders" from the PDFMaker Add-In in Outlook the Tasks folder is greyed out.
    Is this because PDFMaker doesn't support this?  If not, is there another way to convert the Tasks folder to PDF?
    Cheers

    Hello hillsmeister,
    Could you please let me know what version of Acrobat are you using.
    If it is Acrobat version 10 and later, then only PDFMaker application would be compatible with Outlook 2010.
    Try converting some other mails to Adobe PDF and check if the same issue persists.
    Please let me know.
    Regards,
    Anubha

  • Adobe Acrobat Standard and Pdf Conversion

    I am not sure I am in the correct forum, but I recently purchased Adobe Acrobat 8 Standard and I cannot convert existing Word files, for example, to pdf. A message comes up: "PDF Conversion Failed." And that's it. No explanatory message or suggestion how to correct it.
    I would appreciate any help.
    Thank you!

    Try these steps to see if things are working at all. If they work, then it is a process of going one step at a time until the problem is isolated.
    1. Print a simple file to the Adobe PDF printer with print-to-file selected.
    2. Open the file created in (1) in Distiller and see if the conversion completes.
    If (2) is unsuccessful, you will get errors in the Distiller window indicating the problem. With success, the next step is to check if AcroTray is running, so simply print without using print-to-file. If it does not work, then look for AcroTray.exe in your Distiller folder. This application must be working if the print to Adobe PDF is to work correctly.

Maybe you are looking for