Error in PDF Conversion

Hi..am converting spool output to pdf using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'.  But the resultant output table contains just scrap.
My internal output table contains 10 columns and 7 rows.
Kindly let me know a solution for this.
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid              = i_tsp01-rqident
      no_dialog                = ' '
      dst_device               = c_device
      pdf_destination          = ' '
    IMPORTING
      pdf_bytecount            = v_size
    TABLES
      pdf                      = it_pdf_output
    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.
Useful answers will be rewarded.
Regards

Hi,
Following code works for me. try to compare this with your code.
  IF sy-subrc EQ 0.
    NEW-LINE.
    WRITE: sy-uline NO-GAP.
    NEW-PAGE PRINT OFF.
    l_spool = sy-spono.
*--- create unique filename
    WRITE: sy-uzeit TO l_time USING NO EDIT MASK.
    CONCATENATE sy-uname l_time 'cckps.pdf' INTO x_filename.
    PERFORM convert_spool_to_pdf USING sy-spono
                                       x_filename.
  ENDIF.
*&      Form  CONVERT_SPOOL_TO_PDF
FORM convert_spool_to_pdf USING p_spool LIKE sy-spono
                                p_x_filename.
  DATA: l_spool          LIKE tsp01-rqident,
        l_pdf_bytecount      TYPE     i,
        l_pdf_spoolid        LIKE     tsp01-rqident,
        l_list_pagecount TYPE     i,
        l_btc_jobname        TYPE     tbtcjob-jobname,
        l_btc_jobcount   TYPE tbtcjob-jobcount,
        lt_pdf           LIKE STANDARD TABLE OF tline WITH HEADER LINE,
        l_file           TYPE string
                         VALUE '/usr/sap/&/EHS_DOC/'.
  REPLACE '&' WITH sy-sysid INTO l_file.
  CONDENSE l_file NO-GAPS.
  CONCATENATE l_file p_x_filename INTO l_file.
  l_spool = p_spool.
  CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
    EXPORTING
      src_spoolid              = l_spool
    IMPORTING
      pdf_bytecount            = l_pdf_bytecount
      pdf_spoolid              = l_pdf_spoolid
      list_pagecount           = l_list_pagecount
      btc_jobname              = l_btc_jobname
      btc_jobcount             = l_btc_jobcount
    TABLES
      pdf                      = lt_pdf
    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.
  OPEN DATASET l_file FOR OUTPUT IN BINARY MODE.
  LOOP AT lt_pdf.
    TRANSFER lt_pdf TO l_file.
  ENDLOOP.
  CLOSE DATASET l_file.
ENDFORM.                    " CONVERT_SPOOL_TO_PDF
Thanks,
Sree.

Similar Messages

  • Error in PDF Conversion while downloading file from application server

    Hi,
    I am facing a problem in which i have to download file from application server which is a PDF file (output of SAP Script). I am downloading this file using following code in BSP technology:
    * event handler for data retrieval
    EMPCD = REQUEST->GET_FORM_FIELD( 'emp' ).
    MONTH = REQUEST->GET_FORM_FIELD( 'mn' ).
    YEAR  = REQUEST->GET_FORM_FIELD( 'yr' ).
    W_IND = 'N' .
    DATA : wa_zform16 type  zform16.
    DATA : file_path type string.
    DATA : l_pdf_len type string.
    DATA STR TYPE STRING.
    DATA: OUTPUT    TYPE STRING ,
          L_XSTRING TYPE XSTRING ,
          APP_TYPE  TYPE STRING.
    DATA: PDF_TABLE TYPE  RCL_BAG_TLINE.
    DATA PHY_NAME_OUT     TYPE SAPB-SAPPFAD.
    concatenate '/usr/sap/put/form16/' EMPCD '_' YEAR '.PDF'  into file_path
    *PHY_NAME_OUT = '/usr/sap/put/form16/01000200_2007.PDF'.
    PHY_NAME_OUT = file_path.
    OPEN DATASET PHY_NAME_OUT FOR INPUT IN TEXT MODE ENCODING default.
    IF SY-SUBRC IS INITIAL.
      DO.
        READ DATASET PHY_NAME_OUT INTO STR.
        IF SY-SUBRC IS INITIAL.
          CONCATENATE
              OUTPUT
              STR
              CL_ABAP_CHAR_UTILITIES=>CR_LF
          INTO OUTPUT.
        ELSE.
          EXIT.
        ENDIF.
      ENDDO.
      APP_TYPE = 'APPLICATION/PDF'.
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          TEXT     = OUTPUT
                MIMETYPE = 'APPLICATION/PDF'
    *            MIMETYPE = 'APPLICATION/PDF;charset=utf-16le'
        IMPORTING
          BUFFER   = L_XSTRING.
      CALL METHOD CL_BSP_UTILITY=>DOWNLOAD
        EXPORTING
          OBJECT_S            = L_XSTRING
          CONTENT_TYPE        = APP_TYPE
          CONTENT_DISPOSITION = 'attachment;filename=webforms.pdf'
          RESPONSE            = _M_RESPONSE
          NAVIGATION          = NAVIGATION.
    Result of this code is : there is a pop up asking to open or save pdf format and process is complete, but i have problem in downloaded file.
    At the time of creation i have put BMP image for signature in PDF file and it is working fine but when i upload that file in Application server and then download it with above used code it save the PDF file but when i open that file so whereever i have used signature that page gives error and could not display that scanned signature.
    Can anyone please help me in this regard.
    or is there any possibility from which i can download that file just like File transfer from BSP.
    Keep in mind that i am using BSP technology so all GUI based function module to download file are not working.
    waiting for your reply.....
    Regards,
    Gagan

    Hi Raja,
    I have standard sap form for TDS Certificate on which i have include an BMP image for digital signature and download that script into pdf format.While i download that PDF looks ok but it is not working in BSP.
    Regards,
    Gagan

  • Missing font error on PDF conversion

    FrameMaker book that has been updated and converted with same set of fonts and styles many times will not convert to PDF on one machine. (I use a Mac running XP in Parallels for Frame, then Distiller Mac.) The error is "findfont" looking for Helvetica-Oblique. This and all needed Helveticas are present, and I've updated this machine's Distiller's PDF font settings to know where they are--to no avail. I have set Distiller to either warn and continue or ignore missing fonts.
    This same file converts with no trouble on a second Mac with the same set-up. Acrobat distills with warn and continue, the substituted and/or non-embedded fonts clearly visible in the job log, through all 182 pages of the book.
    Is the problem a corrupt font? Bad settings file (and where might I locate it to replace)? Something in what Frame is generating (.ps file)? Printer driver (Acrobat printer actually hangs on either machine)? Should I post this query to the Acrobat forum?
    Thanks for any insight....
    Karen Robbins

    Forgive my erroneous terminology.... Yes, FrameMaker can open the files with missing fonts. No problem finding .ps files: I actually distill manually because Distiller is on the Mac. No, I am not using a default printer that lists Helvetica Narrow Bold as a built-in font. This font occurs in a file to which I import a large amount of tabular text that is preformatted by an MML file. We've been doing it this way for more than 5 years. This will probably make you cringe: Helvetica Narrow is not, and has never been, installed on the Windows side--only on the Mac side where Distiller lives.
    There are now potentially two problems:
    1) When FrameMaker is set to a printer other than Adobe PDF, a .ps file is generated and yes, I can see where the file chokes in Distiller; if I modify the suspect font on that page, the .ps file will distill up to the next instance of that font. This problem is correctly dealt with via warn-and-continue and/or substitution settings on a second machine with the same set-up as the one on which the problem occurs. Note: Using Parallels to run Windows XP, which uses an HP printer driver to reach my physical local printer (regardless of the make/model it happens to be). On the second machine, I have network printers and several different PPDs.
    2) When the FrameMaker printer is set to Adobe PDF on the problem machine, no .ps file is generated because that printer does not find Helvetica Narrow Bold--apparently just as it should.
    Because FrameMaker can generate .ps files and Distiller can distill them on a second machine with the same (apparent) set-up, from the same source material, I want to understand what it is about the fonts, or the font substitution instruction, that is possibly causing the problem. Or, perhaps adding an additional printer PPD (one that works on the second machine) to the problem machine could clear this up?
    Thanks for more insight....
    Karen

  • I recently subscribed to Adobe ExportPDF and tried to convert a PDF file to MS Word.  So far,  after many tries,  I get soe type of error and the conversion fails.  Please advise?

    I recently subscribed to Adobe ExportPDF and tried to convert a PDF file to MS Word.  So far,  after many tries,  I get soe type of error and the conversion fails.  Please advise?

    Hi there,
    It sounds like there may be an issue with the quality of the PDF. Not all PDFs are created equal, and especially those created from scanned documents can be problematic if the scan quality isn't the best. Is there a dark background on the PDF, or stray marks or smudges?
    You can try converting with OCR disabled at outlined in this document: How to disable Optical Character Recognition (O... | Adobe Community. But, while that's a good test to find out where the problem lies, you'll end up with a Word document that isn't editable, so it's not an optimal solution.
    Please let us know how it goes.
    Best,
    Sara

  • When I select "Convert" using the Adobe PDF conversion - I get "Error signing in"

    When I select "Convert" using the Adobe PDF conversion - I get "Error signing in"

    You need the CreatePDF forum

  • I am getting an error message when I try to combine three PDF files"Your PDF conversion request fail

    I am getting an error message when I try to combine three PDF files "Your PDF conversion request failed. Try again later" 
    Thank you,
    Lori Jans

    Hi,
    Please let me know if your files are big. complex, or image files?
    If you sill have the same error message then please share your files with us so that we can look at them using below site: 
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    Thank you.
    Hisami

  • I want to manage my pdf conversion to word account, but when I click on manage I get an error message saying Heading too Large.  How do I get into manage

    I want to manage my pdf conversion to word account, but when I click on manage I get an error message saying Heading too Large.  How do I get into manage

    Hi,
    May i know which service you are using?
    Would it be possible for you to send me the screenshot of the error?
    Regards,
    Florence

  • PDF Conversion Error in Email

    Hi Experts,
    my task is to convert a smartform into pdf & download & email. in two different programs
    download program i converted smartform using 'CONVERT_OTF_2_PDF' and its working fine with no problem.
    and in email program when tried the same one, I have a error as the PDF file is damaged and could not be repaired.
    So I used 'CONVERT_OTF', its working fine and can send emails to external systems with no errors.
    Now my problem is in the email, when i open the attachement, i getting a error in Pdf file.
    "Cannot extract the embedded font Arial. Some characters may not be display or print correctly".
    Please tell me how to close this error.
    Thanks & regards,
    Dileep .C

    hi,
          Report BCS_EXAMPLE_6
          Email documents using PDF based forms
    REPORT bcs_example_6.
    DATA: carr_id TYPE sbook-carrid.
    PARAMETER:      p_custid  TYPE scustom-id DEFAULT 12.
    SELECT-OPTIONS: s_carrid FOR carr_id     DEFAULT 'AA' TO 'ZZ'.
    PARAMETER:      p_email   TYPE adr6-smtp_addr OBLIGATORY.
    DATA: customer          TYPE scustom,
          bookings          TYPE ty_bookings,
          connections       TYPE ty_connections,
          fm_name           TYPE rs38l_fnam,
          fp_docparams      TYPE sfpdocparams,
          fp_outputparams   TYPE sfpoutputparams,
          error_string      TYPE string.
    DATA  ls_formoutput     TYPE fpformoutput.
    DATA  lx_fp_api         TYPE REF TO cx_fp_api.
    data  lp_form           TYPE tdsfname  value 'FP_TEST_03'.
    data  lp_langu          TYPE langu     value 'D'.
    data  lp_countr         TYPE land1     value 'DE'.
    BCS data
    DATA  send_request       TYPE REF TO cl_bcs.
    DATA  text               TYPE bcsy_text.
    DATA  document           TYPE REF TO cl_document_bcs.
    DATA  recipient          TYPE REF TO if_recipient_bcs.
    DATA: bcs_exception      TYPE REF TO cx_bcs.
    DATA  sent_to_all        TYPE os_boolean.
    DATA  pdf_content        TYPE solix_tab.
    DATA  lp_pdf_size        TYPE so_obj_len.
    get data
    SELECT SINGLE * FROM scustom INTO customer WHERE id = p_custid.
    CHECK sy-subrc = 0.
    SELECT * FROM sbook INTO TABLE bookings
             WHERE customid = p_custid
             AND   carrid   IN s_carrid
             ORDER BY PRIMARY KEY.
    SELECT * FROM spfli INTO TABLE connections
             FOR ALL ENTRIES IN bookings
             WHERE carrid = bookings-carrid
             AND   connid = bookings-connid
             ORDER BY PRIMARY KEY.
    Print data:
    First get name of the generated function module
    TRY.
        CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
          EXPORTING
            i_name     = lp_form
          IMPORTING
            e_funcname = fm_name.
      CATCH cx_fp_api INTO lx_fp_api.
      exception handling
        MESSAGE ID lx_fp_api->msgid TYPE lx_fp_api->msgty
          NUMBER lx_fp_api->msgno
            WITH lx_fp_api->msgv1 lx_fp_api->msgv2
                 lx_fp_api->msgv3 lx_fp_api->msgv4.
        EXIT.
    ENDTRY.
    Set output parameters and open spool job
    fp_outputparams-nodialog = 'X'.   " no print preview
    fp_outputparams-getpdf = 'X'.    " request PDF
    CALL FUNCTION 'FP_JOB_OPEN'
      CHANGING
        ie_outputparams = fp_outputparams
      EXCEPTIONS
        cancel          = 1
        usage_error     = 2
        system_error    = 3
        internal_error  = 4
        OTHERS          = 5.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Set form language and country (->form locale)
    fp_docparams-langu   = lp_langu.
    fp_docparams-country = lp_countr.
    Now call the generated function module
    CALL FUNCTION fm_name
      EXPORTING
        /1bcdwb/docparams  = fp_docparams
        customer           = customer
        bookings           = bookings
        connections        = connections
      IMPORTING
        /1bcdwb/formoutput = ls_formoutput
      EXCEPTIONS
        usage_error        = 1
        system_error       = 2
        internal_error     = 3
        OTHERS             = 4.
    IF sy-subrc <> 0.
      CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
        IMPORTING
          e_adserrstr = error_string.
      IF NOT error_string IS INITIAL.
        we received a detailed error description
        WRITE:/ error_string.
        EXIT.
      ELSE.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDIF.
    Close spool job
    CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             =
      EXCEPTIONS
        usage_error          = 1
        system_error         = 2
        internal_error       = 3
        OTHERS               = 4.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ------------ Call BCS interface ----------------------------------
    TRY.
      ---------- create persistent send request ----------------------
        send_request = cl_bcs=>create_persistent( ).
      ---------- add document ----------------------------------------
      get PDF xstring and convert it to BCS format
        lp_pdf_size = XSTRLEN( ls_formoutput-pdf ).
        pdf_content = cl_document_bcs=>xstring_to_solix(
            ip_xstring = ls_formoutput-pdf ).
        document = cl_document_bcs=>create_document(
              i_type    = 'PDF'
              i_hex     = pdf_content
              i_length  = lp_pdf_size
              i_subject = 'test created by BCS_EXAMPLE_6' ). "#EC NOTEXT
      add document to send request
        send_request->set_document( document ).
      ---------- add recipient (e-mail address) ----------------------
        recipient = cl_cam_address_bcs=>create_internet_address(
            i_address_string = p_email ).
      add recipient to send request
        send_request->add_recipient( i_recipient = recipient ).
      ---------- send document ---------------------------------------
        sent_to_all = send_request->send(
            i_with_error_screen = 'X' ).
        IF sent_to_all = 'X'.
          message i022(so).
        ENDIF.
      ---------- explicit 'commit work' is mandatory! ----------------
        COMMIT WORK.
    *            exception handling
    * replace this very rudimentary exception handling
    * with your own one !!!
      CATCH cx_bcs INTO bcs_exception.
        WRITE: text-001.
        WRITE: text-002, bcs_exception->error_type.
        EXIT.
    ENDTRY.

  • 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

  • Error opening pdf in email

    I am trying to email a smartform as pdf. But getting the error that File cannot be opened as it is damaged and cannot be repaired.
    I am getting the otf data from Smartform FM. Then convert it to pdf. And then sending it through SO_NEW_DOCUMENT_ATT_SEND_API1. Attached is my code. I don't know what I am doing wrong. I first tried to send it directly through smartform email parameters. It didn't work. I also tried other functions for OTF to PDF conversions. But always getting the same error . I've also checked SCOT for SMTP node setup. The o/p format for smartforms is PDF.
    Has anybody ever succeeded in getting the good pdf from smart form in the email ? Any idea what I am doing wrong ?
    V_FORMNAME = 'ZSD_DAILY_SHEET_DB'.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = v_formname
    importing
    fm_name = fm_name
    exceptions
    no_form = 1
    no_function_module = 2
    others = 3.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    w_ctrlop-getotf = 'X'.
    w_ctrlop-no_dialog = 'X'.
    w_compop-tdnoprev = 'X'.
    CALL FUNCTION fm_name
      EXPORTING
       CONTROL_PARAMETERS         = w_ctrlop
       OUTPUT_OPTIONS             = w_compop
       USER_SETTINGS              = 'X'
       VTITLE                     = SY-TITLE
       VDATE                      = P_DATE
       VDATE2                     = SY-DATUM
    IMPORTING
       JOB_OUTPUT_INFO            = w_return
      TABLES
        I_DAILY                    = it_daily
        I_MONTHLY                  = it_monthly
        I_YEARLY                   = it_yearly
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    i_otf[] = w_return-otfdata[].
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = v_len_in
    TABLES
    otf = i_otf
    lines = i_tline
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * Convert PDF from 132 to 255.
    LOOP AT i_tline.
    * Replacing space by ~
    TRANSLATE i_tline USING ' ~'.
    CONCATENATE w_buffer i_tline INTO w_buffer.
    ENDLOOP.
    * Replacing ~ by space
    TRANSLATE w_buffer USING '~ '.
    DO.
    i_record = w_buffer.
    * Appending 255 characters as a record
    APPEND i_record.
    SHIFT w_buffer LEFT BY 255 PLACES.
    IF w_buffer IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Refresh: i_reclist,
    i_objtxt,
    i_objbin,
    i_objpack.
    clear w_objhead.
    * Object with PDF.
    i_objbin[] = i_record[].
    DESCRIBE TABLE i_objbin LINES v_lines_bin.
    * Object with main text of the mail.
    i_objtxt = 'Find attached the Daily Dashboard Sheet.'.
    APPEND i_objtxt.
    i_objtxt = 'Regards,'.
    APPEND i_objtxt.
    i_objtxt = 'Dummy.
    APPEND i_objtxt.
    DESCRIBE TABLE i_objtxt LINES v_lines_txt.
    * Document information.
    w_doc_chng-obj_name = 'Smartform'.
    w_doc_chng-expiry_dat = sy-datum + 10.
    w_doc_chng-obj_descr = 'Smart form output'.
    w_doc_chng-sensitivty = 'F'. "Functional object
    w_doc_chng-doc_size = v_lines_txt * 255.
    * Pack to main body as RAW.
    * Obj. to be transported not in binary form
    CLEAR i_objpack-transf_bin.
    * Start line of object header in transport packet
    i_objpack-head_start = 1.
    * Number of lines of an object header in object packet
    i_objpack-head_num = 0.
    * Start line of object contents in an object packet
    i_objpack-body_start = 1.
    * Number of lines of the object contents in an object packet
    i_objpack-body_num = v_lines_txt.
    * Code for document class
    i_objpack-doc_type = 'RAW'.
    APPEND i_objpack.
    * Packing as PDF.
    i_objpack-transf_bin = 'X'.
    i_objpack-head_start = 1.
    i_objpack-head_num = 0.
    i_objpack-body_start = 1.
    i_objpack-body_num = v_lines_bin.
    i_objpack-doc_type = 'PDF'.
    i_objpack-obj_name = 'Smartform'.
    i_objpack-obj_descr = 'Dashboard Sheet'.
    i_objpack-doc_size = v_lines_bin * 255.
    APPEND i_objpack.
    * Document information.
    CLEAR i_reclist.
    * e-mail receivers.
    i_reclist-receiver = p_mail.
    i_reclist-express = 'X'.
    i_reclist-rec_type = 'U'. "Internet address
    APPEND i_reclist.
    * Sending mail.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = w_doc_chng
    put_in_outbox = 'X'
    TABLES
    packing_list = i_objpack
    object_header = w_objhead
    contents_bin = i_objbin
    contents_txt = i_objtxt
    receivers = i_reclist
    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.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Edited by: Arbaab Rahim on Sep 15, 2008 2:41 PM

    Rahim,
    in the FM, SO_NEW_DOCUMENT_ATT_SEND_API1 give COMMIT_WORK = 'X'.
    The following code works for me. Try this.
    *                      START-OF-SELECTION EVENT                       *
    START-OF-SELECTION.
    *" Read the HFA records into internal table............................
      SELECT *
        FROM zhfa
        INTO TABLE t_zhfa
       WHERE zz_vin6 IN s_vin6.
      IF sy-subrc NE 0.
        MESSAGE text-002 TYPE 'W'.
      ENDIF.                               " IF SY-SUBRC NE 0
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'YH1145_HFA1'
    *   VARIANT                  = ' '
    *   DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  = w_name
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2.
        w_control-getotf = 'X'.
        w_control-no_dialog = 'X'.
        w_output-tdnoprev = 'X'.
        LOOP AT t_zhfa INTO fs_zhfa.
          CALL FUNCTION '/1BCDWB/SF00000457'
            EXPORTING
    *   ARCHIVE_INDEX              = ARCHIVE_INDEX
    *   ARCHIVE_INDEX_TAB          = ARCHIVE_INDEX_TAB
    *   ARCHIVE_PARAMETERS         = ARCHIVE_PARAMETERS
             control_parameters         = w_control
    *   MAIL_APPL_OBJ              = MAIL_APPL_OBJ
    *   MAIL_RECIPIENT             = MAIL_RECIPIENT
    *   MAIL_SENDER                = MAIL_SENDER
             output_options             = w_output
             user_settings              = 'X'
              fs_zhfa                    = fs_zhfa
           IMPORTING
    *   DOCUMENT_OUTPUT_INFO       = DOCUMENT_OUTPUT_INFO
             job_output_info            = w_return
    *   JOB_OUTPUT_OPTIONS         = JOB_OUTPUT_OPTIONS
           EXCEPTIONS
             formatting_error           = 1
             internal_error             = 2
             send_error                 = 3
             user_canceled              = 4.
    *" w_return-otfdata holds the smartform OTF data.................
        append lines of w_return-otfdata to t_otf.
        ENDLOOP.
    *" t_otf is the OTF data.........................................
    *" t_line is the PDF data.......................................
        CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                      = 'PDF'
           max_linewidth               = 132
    *   ARCHIVE_INDEX               = ' '
    *   COPYNUMBER                  = 0
    *   ASCII_BIDI_VIS2LOG          = ' '
    *   PDF_DELETE_OTFTAB           = ' '
         IMPORTING
           bin_filesize                = w_filesize
    *   BIN_FILE                    = BIN_FILE
          TABLES
            otf                         = t_otf
            lines                       = t_line
         EXCEPTIONS
           err_max_linewidth           = 1
           err_format                  = 2
           err_conv_not_possible       = 3
           err_bad_otf                 = 4.
        LOOP AT t_line.
          CONCATENATE w_string t_line INTO w_string.
        ENDLOOP.
    *" convert the 132 line character to 255 character ..................
        DO.
          t_attach = w_string.
          APPEND t_attach.
          SHIFT w_string LEFT BY 255 PLACES.
          IF w_string IS INITIAL.
            EXIT.
          ENDIF.
        ENDDO.
        t_objbin[] = t_attach[].
    *" body of the mail..................................................
        CLEAR t_message. REFRESH t_message.
        t_message = 'This is a mail from SAP ECC6'.
        APPEND t_message.
        t_message = 'Thanks and Regards'.
        APPEND t_message.
        t_message = 'Indu'.
        APPEND t_message.
        DESCRIBE TABLE t_message LINES w_msg.
        w_docdata-obj_name = 'SAPRPT'.
        w_docdata-expiry_dat = sy-datum + 10.
        w_docdata-obj_descr = 'Smartform mail from Indu'.
        w_docdata-sensitivty = 'F'.
        w_docdata-doc_size = w_msg * 255.
        w_docdata-obj_langu = sy-langu .
    *" type of the mail send: packing_list.........................
        CLEAR t_packing_list. REFRESH t_packing_list.
        t_packing_list-transf_bin = space.
        t_packing_list-head_start = 1.
        t_packing_list-head_num = 0.
        t_packing_list-body_start = 1.
        t_packing_list-body_num = w_msg.
        t_packing_list-doc_type = 'RAW'.
        APPEND t_packing_list.
        t_packing_list-transf_bin = 'X'.
        DESCRIBE TABLE t_objbin LINES w_objbin.
    *" doc_size = (lines in pdf table) * 255......................
        t_packing_list-doc_size = w_objbin * 255.
        t_packing_list-body_num = w_objbin.
        t_packing_list-doc_type = 'PDF'.
        t_packing_list-obj_name = 'smart'.
        t_packing_list-obj_descr = 'test'.
        APPEND t_packing_list.
        CLEAR t_receivers.
        t_receivers-receiver = '<email id>'.
        t_receivers-rec_type = 'U'.
        APPEND t_receivers.
        CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
          EXPORTING
            document_data                    = w_docdata
           put_in_outbox                    = 'X'
           sender_address                   = sender
    *   SENDER_ADDRESS_TYPE              = 'B'
           commit_work                      = 'X'
    * IMPORTING
    *   SENT_TO_ALL                      = SENT_TO_ALL
    *   NEW_OBJECT_ID                    = NEW_OBJECT_ID
    *   SENDER_ID                        = SENDER_ID
          TABLES
            packing_list                     = t_packing_list
    *   OBJECT_HEADER                    = OBJECT_HEADER
           contents_bin                     = t_objbin
           contents_txt                     = t_message
    *   CONTENTS_HEX                     = CONTENTS_HEX
    *   OBJECT_PARA                      = OBJECT_PARA
    *   OBJECT_PARB                      = OBJECT_PARB
            receivers                        = t_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.
        IF sy-subrc NE 0.
          WRITE:/ 'Error When Sending the File', sy-subrc.
        ELSE.
          WRITE:/ 'Mail sent'.
        ENDIF.
        SUBMIT rsconn01 USING SELECTION-SET 'INT' AND RETURN.
        CALL FUNCTION 'SO_DEQUEUE_UPDATE_LOCKS'.
      ELSEIF p_fax EQ 'X'.

  • Doc to PDF conversion failed for Acrobat 9  on IIS7/win 2008 system

    I wanted to convert a doc to PDF. But getting error when PDF distiller initialized.
    Error : 006~ASP 0177~Server.CreateObject Failed~80080005
    at statement  : Set Obj = server.CreateObject("PdfDistiller.PdfDistiller.1")
    This is done is classic ASP.
    This works perfectly fine on IIS6/win 2003 with Acrobat 5 . but getting error on production server where IIS7/win 2008,Acrobat 9 is installed.
    I have added all the necessary permissions.
    What could be the problem?
    Any help would be appriciated.

    But the same thing is working fine for Acrobat distiller 5 on IIS 6 and Win 2003.
    With Acrobat 5,printer installed is called Acrobat Distiller and with Acrobat 9, printer installed is called Adobe PDF. This should not affect the distiller functionality/execution  I think.
    Manual Doc to PDF conversion works, means if document is passed to Adobe PDf it converts the doc to PDF.
    Somehow automation is not working failing at statement
    Set oDistiller = CreateObject("PDFDistiller.PDFDistiller.1")
    Could there be case that Acrobat 9 doesn't support automation or need license or so?

  • Sending smartform output as PDF attachment, Error opening PDF attachment

    Hi Experts,
    I am using the code form the following link to send a smartform output as PDF attachment. I can able to see the message, but can not open PDF document.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/convertSmartformtoPDFformat&
    The information should be on my smartform are some text, company logo and a barcode.
    With all of these received error: "There was an error opening this document. The file is damaged and could not be repaired."
    I tried different ways like only text, text with company logo, text with barcode. I got the following errors:
    An unrecognized token 'Td0' was found
    There was problem reading this document(16).
    There was problem reading this document(111).
    Does anyone have idea of these ? Your help is greatly appreciated.
    Thank you,
    Surya

    please see this code  ...  for sending the  Email as  PDF attach file,
    *& Report  ZSPOOLTOPDF                                                 *
    *& Converts spool request into PDF document and emails it to           *
    *& recipicant.                                                         *
    *& Execution                                                           *
    *& This program must be run as a background job in-order for the write *
    *& commands to create a Spool request rather than be displayed on      *
    *& screen                                                              *
    REPORT  zspooltopdf.
    PARAMETER: p_email1 LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_sender LIKE somlreci1-receiver
                                        DEFAULT '[email protected]',
               p_delspl  AS CHECKBOX.
    *DATA DECLARATION
    DATA: gd_recsize TYPE i.
    * Spool IDs
    TYPES: BEGIN OF t_tbtcp.
            INCLUDE STRUCTURE tbtcp.
    TYPES: END OF t_tbtcp.
    DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
          wa_tbtcp TYPE t_tbtcp.
    * Job Runtime Parameters
    DATA: gd_eventid LIKE tbtcm-eventid,
          gd_eventparm LIKE tbtcm-eventparm,
          gd_external_program_active LIKE tbtcm-xpgactive,
          gd_jobcount LIKE tbtcm-jobcount,
          gd_jobname LIKE tbtcm-jobname,
          gd_stepcount LIKE tbtcm-stepcount,
          gd_error    TYPE sy-subrc,
          gd_reciever TYPE sy-subrc.
    DATA:  w_recsize TYPE i.
    DATA: gd_subject   LIKE sodocchgi1-obj_descr,
          it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
          gd_sender_type     LIKE soextreci1-adr_typ,
          gd_attachment_desc TYPE so_obj_nam,
          gd_attachment_name TYPE so_obj_des.
    * Spool to PDF conversions
    DATA: gd_spool_nr LIKE tsp01-rqident,
          gd_destination LIKE rlgrap-filename,
          gd_bytecount LIKE tst01-dsize,
          gd_buffer TYPE string.
    * Binary store for PDF
    DATA: BEGIN OF it_pdf_output OCCURS 0.
            INCLUDE STRUCTURE tline.
    DATA: END OF it_pdf_output.
    CONSTANTS: c_dev LIKE  sy-sysid VALUE 'DEV',
               c_no(1)     TYPE c   VALUE ' ',
               c_device(4) TYPE c   VALUE 'LOCL'.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * Write statement to represent report output. Spool request is created
    * if write statement is executed in background. This could also be an
    * ALV grid which would be converted to PDF without any extra effort
      WRITE 'Hello World'.
      new-page.
      commit work.
      new-page print off.
      IF sy-batch EQ 'X'.
        PERFORM get_job_details.
        PERFORM obtain_spool_id.
    *** Alternative way could be to submit another program and store spool
    *** id into memory, will be stored in sy-spono.
    *submit ZSPOOLTOPDF2
    *        to sap-spool
    *        spool parameters   %_print
    *        archive parameters %_print
    *        without spool dynpro
    *        and return.
    * Get spool id from program called above
    *  IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
        PERFORM convert_spool_to_pdf.
        PERFORM process_email.
        if p_delspl EQ 'X'.
          PERFORM delete_spool.
        endif.
        IF sy-sysid = c_dev.
          wait up to 5 seconds.
          SUBMIT rsconn01 WITH mode   = 'INT'
                          WITH output = 'X'
                          AND RETURN.
        ENDIF.
      ELSE.
        SKIP.
        WRITE:/ 'Program must be executed in background in-order for spool',
                'request to be created.'.
      ENDIF.
    *       FORM obtain_spool_id                                          *
    FORM obtain_spool_id.
      CHECK NOT ( gd_jobname IS INITIAL ).
      CHECK NOT ( gd_jobcount IS INITIAL ).
      SELECT * FROM  tbtcp
                     INTO TABLE it_tbtcp
                     WHERE      jobname     = gd_jobname
                     AND        jobcount    = gd_jobcount
                     AND        stepcount   = gd_stepcount
                     AND        listident   <> '0000000000'
                     ORDER BY   jobname
                                jobcount
                                stepcount.
      READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
      IF sy-subrc = 0.
        message s004(zdd) with gd_spool_nr.
        gd_spool_nr = wa_tbtcp-listident.
        MESSAGE s004(zdd) WITH gd_spool_nr.
      ELSE.
        MESSAGE s005(zdd).
      ENDIF.
    ENDFORM.
    *       FORM get_job_details                                          *
    FORM get_job_details.
    * Get current job details
      CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
           IMPORTING
                eventid                 = gd_eventid
                eventparm               = gd_eventparm
                external_program_active = gd_external_program_active
                jobcount                = gd_jobcount
                jobname                 = gd_jobname
                stepcount               = gd_stepcount
           EXCEPTIONS
                no_runtime_info         = 1
                OTHERS                  = 2.
    ENDFORM.
    *       FORM convert_spool_to_pdf                                     *
    FORM convert_spool_to_pdf.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
           EXPORTING
                src_spoolid              = gd_spool_nr
                no_dialog                = c_no
                dst_device               = c_device
           IMPORTING
                pdf_bytecount            = gd_bytecount
           TABLES
                pdf                      = it_pdf_output
           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.
      CHECK sy-subrc = 0.
    * Transfer the 132-long strings to 255-long strings
      LOOP AT it_pdf_output.
        TRANSLATE it_pdf_output USING ' ~'.
        CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
      ENDLOOP.
      TRANSLATE gd_buffer USING '~ '.
      DO.
        it_mess_att = gd_buffer.
        APPEND it_mess_att.
        SHIFT gd_buffer LEFT BY 255 PLACES.
        IF gd_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    ENDFORM.
    *       FORM process_email                                            *
    FORM process_email.
      DESCRIBE TABLE it_mess_att LINES gd_recsize.
      CHECK gd_recsize > 0.
      PERFORM send_email USING p_email1.
    *  perform send_email using p_email2.
    ENDFORM.
    *       FORM send_email                                               *
    *  -->  p_email                                                       *
    FORM send_email USING p_email.
      CHECK NOT ( p_email IS INITIAL ).
      REFRESH it_mess_bod.
    * Default subject matter
      gd_subject         = 'Subject'.
      gd_attachment_desc = 'Attachname'.
    *  CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
      it_mess_bod        = 'Message Body text, line 1'.
      APPEND it_mess_bod.
      it_mess_bod        = 'Message Body text, line 2...'.
      APPEND it_mess_bod.
    * If no sender specified - default blank
      IF p_sender EQ space.
        gd_sender_type  = space.
      ELSE.
        gd_sender_type  = 'INT'.
      ENDIF.
    * Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_mess_bod
                                          it_mess_att
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'PDF'
                                          gd_attachment_name
                                          gd_attachment_desc
                                          p_sender
                                          gd_sender_type
                                 changing gd_error
                                          gd_reciever.
    ENDFORM.
    *       FORM delete_spool                                             *
    FORM delete_spool.
      DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
      ld_spool_nr = gd_spool_nr.
      CHECK p_delspl <> c_no.
      CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
           EXPORTING
                spoolid = ld_spool_nr.
    ENDFORM.
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM send_file_as_email_attachment tables it_message
                                              it_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
    data:   t_packing_list like sopcklsti1 occurs 0 with header line,
            t_contents like solisti1 occurs 0 with header line,
            t_receivers like somlreci1 occurs 0 with header line,
            t_attachment like solisti1 occurs 0 with header line,
            t_object_header like solisti1 occurs 0 with header line,
            w_cnt type i,
            w_sent_all(1) type c,
            w_doc_data like sodocchgi1.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    * Fill the document data.
      w_doc_data-doc_size = 1.
    * Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    * Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = it_attach[].
    * Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    * Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    * Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_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.
    * Populate zerror return code
      ld_error = sy-subrc.
    * Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    reward  points  if it is usefull ....
    Girish

  • Word to PDF Conversion = Different Color on Paper

    Hello All,
    I created a bunch of forms in Word 2010. Converted them into PDF and made them fillable. On screen Word doc and PDF doc colors look the same, but when I print PDF documents their blue turns intor dark purple. Any suggestions on how to keep colors consistent with the Word doc? I read about software and screen collibration, but I believe that there must be a simplier way to synchronize colors. Again, on screen colors looks the same....  Thank you very much.

    try these links:
    http://www.learningsharepoint.com/2012/10/15/word-to-pdf-conversion-in-sharepoint-2013-via-print-to-pdf/
    https://code.msdn.microsoft.com/office/SharePoint-2013-Convert-1e0578a1
    https://www.linkedin.com/groups/SharePoint-2013-has-another-awesome-4542747.S.175460660
    Please mark as answer if you find it useful else vote for it if it is close to answer..happy sharepointing
    Hi, 
    Thanks for the help.
    Your first link use Office Web Apps to generate a PDF and launch printing action, it's not my use case.
    I wan't generate a PDF near the word document in a document library.
    Your second link is interesting, allow IntranetCall and permission on application service Word Automation but no change.
    I have always :
    "The file could not be converted due to an intermittent error in the system. Please resubmit this file for conversion. If the file fails again with this error message, contact your system administrator" error code 10.
    Help me !!!!
    http://kouilb.wordpress.com

  • IBR - PDF Conversion

    Hi people!
    I am trying to enable the pdf conversion on my Content Server (windows).
    I installed IBR, same admin and computer as the idc instance.
    I installed "PDF Converter" and a distiller engine (afpl ghostcript).
    I also installed a new printer on the computer and configured the provider, the file formats, etc ... on Content Server and IBR.
    When I check a word document in, I have the following error (no pdf generated) :
    (translated from french...)
    Failed to check c:/oracle/ucm/server2/vault/~convert/idc/9/essai~1.pdf.tmp.pdf file
    'PDFOptimization' has not generated the exit file 'c:/oracle/ucm/server2/vault/~convert/idc/9/essai~1.pdf.tmp.pdf'.
    Exception type 'java.lang.Throwable'. [ Details ]
    Stack Trace :
    Failed to check c:/oracle/ucm/server2/vault/~convert/idc/9/essai~1.pdf.tmp.pdf file <br>'PDFOptimization' has not generated the exit file 'c:/oracle/ucm/server2/vault/~convert/idc/9/essai~1.pdf.tmp.pdf'. <br>!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(Unknown Source)
         at intradoc.common.Log.addMessage(Unknown Source)
         at intradoc.common.Log.errorEx2(Unknown Source)
         at intradoc.common.Log.errorEx(Unknown Source)
         at docrefinery.agent.Logger.logError(Logger.java:138)
         at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:140)
         at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
         at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:204)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:125)
         at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
         at java.lang.Thread.run(Thread.java:595)
    Could someone help me ?
    thanks,
    romain.

    Hi!
    I tried that but I got the following errors in the agent log :
    "The step MSOfficeToPostscript did not create a log entry, it may not have set results correctly. Exception type is 'java.lang.Throwable
    Runtime error:java.lang.NullPointerException
    at docrefinery.data.DocumentConversionsSteps.getStepData(DocumentConversionsSteps.java:43)
    at docrefinery.data.ConversionDataManager.getStepData(ConversionDataManager.java:78)
    at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:81)
    at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:298)
    at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
    at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:165)
    at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:109)
    at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
    at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
    at docrefinery.convert.ConversionDriver.processSubConversion(ConversionDriver.java:165)
    at docrefinery.convert.StepHandler.executeStepByName(StepHandler.java:109)
    at docrefinery.convert.ConversionDriver.processSteps(ConversionDriver.java:231)
    at docrefinery.convert.ConversionDriver.convertDocument(ConversionDriver.java:144)
    at docrefinery.queue.PreConvertedRefineryQueueMonitor.handleCurrentQueueItem(PreConvertedRefineryQueueMonitor.java:204)
    at docrefinery.queue.PreConvertedRefineryQueueMonitor.monitorRefineryPreConverterQueue(PreConvertedRefineryQueueMonitor.java:125)
    at docrefinery.queue.PreConvertedRefineryQueueMonitor$1.run(PreConvertedRefineryQueueMonitor.java:93)
    at java.lang.Thread.run(Thread.java:595)
    AND
    "Conversion completed -- Step MSOfficeToPostscript forced conversion failure by conversion engine because of error: 'Unable to convert. Native application reported: '' ActiveX component can't create object'. Exception type is 'java.lang.Throwable'" and the file is not checked in...
    Have you an idea ?
    Here are the steps I followed to enable PDF conversion :
    - Installing component InboundRefinerySupport
    - Installing IBR
    - Configuring Apache
    - Installing PDFConverter.zip
    - Installing ghostscript 8.54
    - Configuring the distiller engine on "Third-Party Application Settings"
    - Installing the printer IDC PDF PRINTER
    - Creating the outgoing provider on idc
    - Configuring the conversion parameter application/msword to Word
    - Configuring the "Primary Web-Viewable Rendition" to "Convert to PDF using third-party applications "
    Maybe, I have forgotten something ...
    Romain.

  • Your PDF conversion request failed.

    Everytime I try to combine my PDF's I keep getting a message that says Your PDF Conversion Request Failed.

    Hi,
    Please let me know if your files are big. complex, or image files?
    If you sill have the same error message then please share your files with us so that we can look at them using below site: 
    https://adobeformscentral.com/?f=qJiclooYWGGNFtWfj8g3wg#
    Thank you.
    Hisami

Maybe you are looking for

  • OfficeJet 7000 Wide Format Printer

    I would like to buy the OfficeJet 7000 Wide Format printer if it meets my needs. I want to be able to print addresses and some small graphics onto 9X12 catalog envelopes so as to not need labels.  Does anyone know if this would work? Thank you!

  • Linux or Java? :Cannot display non english characters

    hi, i am trying to implement a GUI that supports both turkish and english. user can switch between them on the fly. public class SampleGUI { JButton trTranslate = new JButton(); /* Button, to translate into turkish */ /* Label text will be translated

  • Creative cloud app, updating cc products windows 8.1

    Hi, i recently upgraded to windows 8.1and reinstalled  my adobe cc products, however i have noted that everytime i update using the creative cloud app nothing happens, it detects some of my products needs updating and when i click update and it verif

  • Changing Reel Name

    Hi, I'm creating a video archive with the footage we've recently acquired, and have a question about changing the reel name in the logging info window. I want to change the reel name to correspond to the new tape label numbers I've created for the ar

  • DNL_CUST_PROD1  doesn't replicate product categories/ herarchies.

    Hi Experts, When I run DNL_CUST_PROD1  it shows green in r3am1 but  when I check tcode COMM_HIERARCHY ,  MAT_* is missing in R3PRODSTYP. On R/3 side, I don't see any categories or hierarchies in COMM_HIERARCHy tcode.Also in R/3 COMM_PRAPPLCAT is empt