To Convert ASCII Data to PDF file

Hello,
Does any one knows how to convert ASCII data into PDF document using Java. I know there are some 3 party tools available which does this, but i don't want to use any 3 party tools.
Can help on this matter, doing it using java programming will be appreciated

if you don't want to use 3rd party tools, then you will need to go read either the source of an app that does it, and port/copy it.
Or go read the the specs.

Similar Messages

  • No Data in PDF file in FTP server

    Hi All,
    I am trying to place a PDF file in FTP server.
    Used
    CONVERT_OTFSPOOLJOB_2_PDF to convert spool to PDF
    SCMS_TEXT_TO_XSTRING
    FTP_R3_TO_SERVER to transfer data to FTP.
    I am able to see PDF file in FTP and no of pages matches with that of R/3 but there is no data in PDF file.

    To get pdf file , you need to set the itcpo-tdgetotf = 'X' and need to pass in the exporting parameter (options in open_form  function module ).Then in close_form function module take all the data of otfdata table into an internal table . Then use SX_OBJECT_CONVERT_OTF_PDF function module to convert it to pdf.
    I will show with an  example.
    tables itcpo.
    DATA: ch_otf  TYPE  STANDARD  TABLE OF  itcoo.
    DATA: w_otf TYPE itcoo.
    DATA: w_pdf TYPE solisti1. "For PDF
    DATA: i_content_txt TYPE soli_tab.   
    DATA: temp1 TYPE sx_format VALUE 'OTF',
            temp2 TYPE sx_format VALUE 'PDF'.
      DATA: c_printer TYPE sx_devtype VALUE 'PRINTER'.
      DATA: w_transfer_bin TYPE sx_boolean. "Content
      DATA: i_content_bin TYPE solix_tab, "Content
            wa_content_bin TYPE solix,
            i_objhead TYPE soli_tab.
    itcpo-tdnoprint  = 'X'.
      itcpo-tdpreview = 'X'.
      itcpo-tdgetotf = 'X'.
    These three parameters need to be passed along with other required parameters
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING form = xformular
                     language = ekko-spras
                     OPTIONS = itcpo
                     archive_index  = toa_dara
                     archive_params = arc_params
                     device = xdevice
                     dialog = xdialog
                     mail_sender        = sender
                     mail_recipient     = recipient
           EXCEPTIONS canceled = 01.
      CALL FUNCTION 'CLOSE_FORM'
        IMPORTING
          RESULT  = RESULT
        tables
          otfdata = ch_otf.
    LOOP AT ch_otf INTO w_otf.
        CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
        INTO w_pdf.
        APPEND w_pdf TO i_content_txt.
      ENDLOOP.
    converting otf file to pdf file
      CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
        EXPORTING
          format_src      = temp1        "'OTF'
          format_dst      = temp2        "'PDF'
          devtype         = c_printer
        CHANGING
          transfer_bin    = w_transfer_bin
          content_txt     = i_content_txt
          content_bin     = i_content_bin
          objhead         = i_objhead
          len             = v_len_in
        EXCEPTIONS
          err_conv_failed = 1
          OTHERS          = 2.
    Then open dataset and transfer to ftp of the content of table content_bin(i_content_bin) as shown in above example.
    I think this will be helpful for you

  • How to download the script data into pdf file

    how to download the script data into pdf file
    i have one option to download the script data to pdf file --->rstxpdft4 program.
    i have one doubt how to use this proogram.or any function module to download the script data to pdf file.
    Thanks and regards,
    Sri.

    Hi      Sri Sai,
    I know one method to convert the sapscript to pdf file :
    first generate a Spool Request for the required Sapscript
    then goto transaction SP01 and copy the generated Spool Request number
    now execute the SAP report RSTXPDFT4
    here enter the copied Spool request number and the target directory into the parameters
    execute the report
    required pdf file will be generated into the target directory
    i hope it will help you out
    Please refer this simple program:
    http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
    Reward points if found helpful....
    Cheers,
    Eshwar.

  • Convert portfolio to single pdf file

    Hi, I have a portfolio of my email archive which I want to convert to a single pdf file. The way I'm doing it is by combining files and adding the portfolio file and then clicking combine, merge files into a single pdf, adding the portfolio and selecting single pdf file. This 'breaks up' the portfolio into its individual constituents which you can then combing into a single normal pdf file.
    But there is a problem. In the portfolio the original date of the email is retained so you can sort the emails chronologically. However, when the portfolio is broken up the individual files are dated on the date the portfolio is created and so the new file is not sorted in the chronological send/receive order of the emails.
    So my question is: how do I combine emails to a single pdf file in the chronological order of the emails?
    Many thanks
    Ps Since typing this message I've noticed that when printing all files in the portfolio it also doesn't print it in chronological order even though that's how they're sorted in the portfolio.

    Something to try —
    View the open Portfolio in the List or Basic Grid view.
    Select all the files.
    Select File > Sae Files from Portfolio > Use the Browse For Folder dialog to select a destination.
    Click OK.
    A copy of the Portfolio's files will be in the designated location.
    Perform the Combine > Merge Files into a Single PDF action.
    Be well..
    Message was edited by: CtDave

  • How to convert SAPScript data to Excel file

    Hi Experts,
    Curenntly I am converting SAP Script data to PDF file and send an e-mail with attachment (PDF file).
    Same like this, is that possible to covert thda Script data to Excel file to send mail with attachment.???
    If, yes please sugget with respective Function Modules.
    Thanks In Advance.
    Best Regards.

    Hi,
    Thanks for response, Here providing more inforamation.
    Presently my report displaying Customer information. As per user requirement, coverting the Script data to PDF by using
    CALL FUNCTION 'CONVERT_OTF_MEMORY'
              EXPORTING
                format                = 'PDF'
                max_linewidth         = 132
              IMPORTING
                bin_filesize          = doc_size
              TABLES
                lines                 = htline.
    Now user want to add two radiobuttons on selection screen for PSF file & Excel file
    If user seleacts Excel fiel radio button, then I need to covert the SAP Script data to Excel file lik I have done for PDF.
    I'd like to know is that possible covert the Script data to Excel file. If yes, suggest with FMs or process.
    Best Regards.

  • Convert Report Program to PDF file

    Hi All,
    I need example of converting Report program to PDF file.
    I am beginner so please give simple example to understand it properly ..
    Please write the description along with the code so that i can understand it...
    no long long programs please.
    Thanks.
    Raj

    Hi,
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant.  Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
      tsp01.
    *-- STRUCTURES
    data:
      mstr_print_parms like pri_params,
      mc_valid(1)      type c,
      mi_bytecount     type i,
      mi_length        type i,
      mi_rqident       like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
      mtab_pdf    like tline occurs 0 with header line,
      mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
      p_repid like sy-repid, " Report to execute
      p_linsz like sy-linsz default 132, " Line size
      p_paart like sy-paart default 'X_65_132'.  " Paper Format
    start-of-selection.
    concatenate 'c:'
                p_repid
                '.pdf'
      into mc_filename.
    *-- 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               = mstr_print_parms
         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 mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = p_linsz.
      mstr_print_parms-paart = p_paart.
      submit (p_repid) to sap-spool without spool dynpro
                       spool parameters mstr_print_parms
                       via selection-screen
                       and return.
    *-- Find out what the spool number is that was just created
      perform get_spool_number using sy-repid
                 sy-uname
        changing mi_rqident.
    *-- Convert Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid= mi_rqident
          no_dialog  = space
          dst_device = mstr_print_parms-pdest
        importing
          pdf_bytecount                  = mi_bytecount
        tables
          pdf        = mtab_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.
    call function 'DOWNLOAD'
         exporting
              bin_filesize            = mi_bytecount
              filename                = mc_filename
              filetype                = 'BIN'
         importing
              act_filename            = mc_filename
         tables
              data_tab                = mtab_pdf.
    *       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(8)
                  f_uname+0(3)
        into lc_rq2name separated by '_'.
      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
    Regards
    Sudheer

  • Convert PO in to PDF file

    Hi,
    Can anybody help me to configure system to convert PO in to PDF file.
    Thanks,
    Sanjana

    Hi jain,
    When using external mail, the following basic settings are required:
    1. You must maintain an e-mail address in the address in the vendor master.
    2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.
    • Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on).
    • The system only uses the e-mail address of the vendor that is maintained in the vendor master!
    3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
    4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
    5. In the condition records for the output type NEU (for example, Transaction MN04), use medium '5' (External send). Then in Transaction M/34 for the output type NEU add the medium '5' (External send) in Partner functions & Processing routines.
    6.Then Create a PO…Go to Messages>select the output type & medium '5' (External send). Then communication method > Comm Strategy “CS01”. Remoce Print immediately if it is ticked.
    7. Then go back ,Select message>Further data>Dispatch time>Select 'Send immediately (when saving application)'
    Back and save PO.
    8. Check SCOT. PO will be in the waiting list. If u want to see the detailed list of waiting items then go to transaction SOST. Specify the Send date, select the check box Waiting & execute.
    If you want further details Please check the SAP note 191470.
    Or
    If you want a particular document in PDF , Goto SE38 enter program as RSTXPDFT4 , Enter Spool number of the document generated while print output that you want to convert in to PDF. Give location where you want to save. open the file in PDF format. Then attach this file to the email.
    Regards,
    hareesha

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • Convert word document to PDF file in SAP

    Hello experts,
    I've been searching around to get some code examples to upload a word document and convert it into a PDF file and then store it in unix. I hope one of you can help me, because many explanations and threads exist, but I did not get wiser reading them...
    I don't want to use 3rd party tools to do the conversion, but do it directly in SAP with abap coding and if necessary spool processing.
    System details:
    SAP ECC 6.0 (unicode system)
    SAP_ABA     700     0014     SAPKA70014     Cross-Application Component
    SAP_BASIS     700     0014     SAPKB70014     SAP Basis Component
    Thanks in advance!
    Regards,
    Danny

    Hi,
    You can get the spool no from transaction SP01 and later use this spool no to convert the word document to PDF
    using the function module CONVERT_OTFSPOOLJOB_2_PDF and give the import parameter as ur spool id.
    once the doc gets converted to PDF u can use CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
    to get the path where the file is to be saved and later give the path to function module GUI_DOWNLOAD to download the file.
    or else u can manually execute the following reports:
    RSTXPDFT4  (give the spool no. as input)
    RSPO0068  (give the word doc with its full path as input)
    Hope that helps u
    Regards,
    Radhika

  • How to convert a password protected pdf file?

    How do I convert a password protected pdf file to Word?

    Yup. You all are right. I ordered Adobe Acrobat today and the order is still processing. I can get to Adobe Acrobat.com but that too does not work. I guess I will have to wait until my order is processed before I get the keys to the kingdom. Thanks for your help and please forgive my ignorance.Regards,Bob

  • Convert Binary Data into Pdf & send it as attachment in a mail in Workflow

    Hi,
    Scenario:
    The interactive form saved in WebDynpro Application is sent to R/3 in binary format. It has to be converted into pdf and sent it as an attachment in mail to the respective person in workflow.
    Kindly help on these issues :
    1. How to receive the binary data in R/3 sent by the WebDynpro Application ?
    To my knowledge we can receive the binary in XSTRING data type. Plz correct me if am wrong.
    2. How do i convert the received binary data into pdf ?
    Thanks,
    Bharath Kaushik

    Hi Bharath,
    I think you should try to write dat being sent to R/3 to spool first, as in R/3 there is FM <i>CONVERT_ABAPSPOOLJOB_2_PDF</i> , with the help of which you will be able to convert Binary data to PDF format.
    Pls find one of the threads related to this , and see if this is useful to you.
    Problem in CONVERT_ABAPSPOOLJOB_2_PDF.
    Hope this atleast helps to start off.
    Regds,
    Akshay Bhagwat
    PS: Some points would be nice if it helps:)

  • Macro to create Excel data to PDF file.

    hi i have data in my spread sheet, assume Sheet1. I want user to view/save the data in PDF file automaticallu upon clicking command button. Viewing/saving any onething will work for me. Need complete steps please.
    Thanks,
    Robo.

    Hans -
    You're answers on this topic have been very helpful, thank you. I have one question.
    I'm using the below code which is perfect for me, but I want to add one thing. I want to be able to select the previous sheet so that it is printed as well. I want the previous sheet to be the first page that gets printed in the PDF, so the current sheet
    (The sheet with the "Print PDF" button) gets printed as the second sheet.
    Your help in solving this would be appreciated it.
    Sub SavePDF()
    Dim strFileName As String
    strFileName = Application.GetSaveAsFilename( _
    InitialFileName:="\\server\share\folder\", _
    FileFilter:="PDF Files (*.pdf),*.pdf", _
    Title:="Save As PDF")
    If strFileName <> "False" Then
    ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
    Filename:=strFileName, _
    OpenAfterPublish:=False
    End If
    End Sub

  • Will adobe pdf converter recognize an Hebrew pdf file?

    Will Adobe pdf converter recognize an Hebrew pdf file and convert it into an editable Word or OpenOffice file?

    Our ExportPDF service doesn't support Hebrew text at this time.  Feel free to vote for this feature here: http://forums.adobe.com/ideas/1554
    -David

  • I downloaded a magazine as a web archive and want to know can I convert it to a PDF file and if so, how do I do that please

    I downloaded an magazine as a web archive and want to convert ii to a PDF file. Can I do this and if so, how ? Thank You

    Thank you Frederic, however when I click on "open with", 3 sidebars (?) open in this order ..Safari (default); Textedit; Other. If I click on "other", another window opens with "recommended applications" highlighted. Preview is not one of the chosen applications. However if I click on "all applications", Preview is then highlighted, but it only has an "open" window and I don't get an opportunity to File>Save as PDF.
    I hope this makes sense...ellietess

  • How to write adapter module to convert the xml to pdf file

    Hi all,
      how to write adapter module to convert the xml to pdf file.
    Please any body assist step by step procedure.

    PI 7.1 XML to PDF transformation
    have you seen below links:
    http://forums.sdn.sap.com/thread.jspa?threadID=1212478
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

Maybe you are looking for

  • How do I delete an old apple id that continues to pop up on my iPad?

    My iPad 2 defaults to an old apple id - I don't remember the password for that id ....I do have a new email id and password however but can't insert it into the text boxes because of this darn pop up that asks me to enter my old id password (which i

  • Publishing to MobileMe fails

    Not sure what to do here because, MobileMe (formerly dotMac) has worked, all be it slowly, but seamlessly. I'm trying to publish a modest number of images to a gallery (50 images) prepared for optimized download capabilities. I've done this many, man

  • Explain charging process change, please

    I've read thru threads about why the IPT G2 won't change with many adapters that charge the G1 and other iPods. The common explanation seems to be that earlier chargers / iPods used "Firewire 12v pins." I'm having trouble understanding this explanati

  • When I'm composing email (Yahoo or Gmail), the apostrophe key engages the QUICK FIND feature.

    I'm running Firefox 3.0.19 on a Mac Power PC G5, OS 10.4.11. (I know those are all very outdated.) Problem: Since I upgrade to new Yahoo mail, when I'm composing a new Yahoo mail message, when I hit the regular apostrophe key, it engages the Firefox

  • Where can I download IPhoto 8.1.3?

    Apple Store had only 8.1.2 as the latest 8.1.x