Convert HTML-Spool to PDF

Hi experts,
I'm looking for a possibility to conbvert a Spool-request to PDF fomrat.
Following situation:
I have a Web Dynpro that creates a page with a few material details. I can now export this to Excel, but now the requeiremt is also to convert it to PDF.
We don't have ADS, so I can't use Adobe forms. First, I tried to create a Smartform and convert this to PDF which will work. But I have also a few pictures included which come from a Web Service (as JPG). After searchin a while I found a possibilty to convert them to TIF and insert them in SE78 automatically. But this takes to much time and as a result of insert them to SE78, the colors will change (only 256 colors).
Next idea was to generate a HTML-Mail out of my Smartform (regaring this blog /people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp) what works perfectly now.
So now I have a Spool in SOST which contains a HTML file. OK, looks great, all pictures are included, takes not much time - but how to convert this to PDF?
Anybody any ideas?

Hi experts,
after searching the whole forum and internet, I don't find any solution.
Maybe the convertion from Spool to PDF is not possible...
OK, another idea:
I read that the wrong colors result from the different color depth (16/24 bit vs 256 colors). So my last idea is to convert the image before inserting into BDS (SE78), automatically done by SAP.
Is there any function/coding you know which can convert me a image from 24bit to 256 colors? If so, I can convert the image and then insert into BDS...

Similar Messages

  • Convert ABAP Spool to PDF and display in BSP

    Hello SDNers,
    I have a requirement to display an R/3 report in Portal as PDF. I have chosen the route of creating a BSP which will show the report as PDF.
    I will then create a BSP iView in Portal pointing to this application.
    I am following the weblog /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp
    and few SDN forums:
    Display result of standard report RPTEDT00 within BSP
    Re: PDF Output
    I am new to BSP development and I am not able to put all the pieces of code together.
    I would really appreciate if you can help me put the pieces together and help me out with this.
    More details:
    This custom report displays the summary of Benefits Cost Accounting (by PERNR and current year).
    Once the report is run, I would like to get hold of the spool and convert the spool to PDF.
    In my BSP I would like to get the spool (or the binary of the PDF) and display the report as PDF in the BSP application.
    I have created the BSP application using the code given in the above weblog.
    I am not sure how to proceed further with the requirement.
    Looking forward for your suggestions and help.
    Thanks,
    Kalyan

    Hi kalyan,
    go thru this wiki and you will have what you need all at one place. the piece you might want to look at is ABAP spool to PDF. It even contains complete code.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/bsp/pdf
    hope this helps.

  • To convert smartform spool to pdf

    Hi all,
    I need to convert smartfom spool to pdf..
    When i executed the smartform it is generating a spool number and
    tsp01-rqdoctype =  'SMART'.
    To convert Spool to PDF Iam using the following function module
    'CONVERT_ABAPSPOOLJOB_2_PDF'
    It is converting to pdf only if the document type is 'LIST'.
    can any one suggest me how to convert smartform spool to pdf?
    Regards
    cnu

    Hi
    Refer to this link :
    Re: smartform output to mail
    Reward if useful
    Thanks
    Krushna

  • Converting Postscript spool to PDF spool

    I have WWI reports that are generated by the WWI generation server with spool in postscript format. Is there a function module available to convert Poscript spool to PDF?

    Have you tried with sap standard program RSTXPDFT4     ?

  • Help converting html/xhtml to pdf with bfo pdf lib or other tools?

    Hi,
    I need to convert from xhtml to pdf. I tried parsing it with xerces and crimson but wouldnt work. So the samples coming with big faceless pdf library dosent work. Is there any other method to convert html/xhtml to pdf - any libraries for direct conversion. BFO pdf report generator takes xml as i/p to convert to pdf.
    Thanks for any help

    Look here:
    http://www.adobe.com/sea/products/server/pdfgenerator/

  • Bitmap image won't show after converting HTML file to pdf

    I have a program which saves a technical report as a HTML file. I don't  have another choice as to file type to save as. This program has a  template which generates the report....and there are fields which are  filled in...some text fields, and one is a company logo. Just to be  clear the logo itself is not in the template, a holding place is there  which points to the location of the logo on my drive. This is all set up  by the program and can't be altered.
    If I save the logo as a jpg, png or tiff file, the logo shows up in the  final HTML report and if I use Adobe Professional (version 7.0 on Win XP)  to create a pdf the  image also shows up - a perfect replica of the report is created in pdf,  making it convenient for printing and email.
    If I save the logo as a bitmap file (which creates a higher resolution  and sharper looking logo) the logo shows up in the initial HTML  technical report, but when I convert this to pdf the file is not found,  instead it shows as a small square red box with the error "Bad file  image" or "unable to download image".
    I can't understand why this would be the case as the logo is saved in  the same location whether it is jpg, png, tiff or bmp. It just seems  that the Adobe Pro doesn't know how to "find" the bitmap logo from the  HTML template. 
    I did try converting the HTML document to Word but it threw the  formatting out and when it was converted to pdf it cropped the page  & I wasn't able to resolve this...maybe it can be done but it is a  long way around in any case, particularly if steps then need to be taken  to correct the formatting.
    At the moment the document can be printed with success from the original  format - then it's a matter of scanning the printed document in order  to email. It can't be emailed directly because of the embedded  information which is lost if then sent to the recipient's computer.  However it would be nice if the doc could be converted to pdf which  would then make it easier to transfer the file to a backup drive or for  email.  Any ideas? Thanks

    Thanks for your response. Yes I did mean .bmp files.
    The problem is not getting it to show in HTML - but Adobe then picking it up from there. I guess though if it is not a standard format for HTML then maybe Adobe has trouble recognising it if it is there. Also, it is possible for Adobe to convert .bmp files if they are inserted in the HTML file, but I have instead a template with the code for the location of the file rather than the graphic itself.  I don't have this problem using the other file formats and getting them into pdf...it's just that the images aren't as sharp as the bmp. I have tried various formats and resolutions so if there isn't a way I can get the bmp from the HTML file into pdf I might just have to live with printing and scanning from the original. Thanks for your input, it confirms what I was thinking. I'll leave this unanswered for now in case someone else has further information.

  • Convert Screen(spool) to PDF file sending mail with attach file

    Hi :
    I'd like convert spool list to pdf and sending file...
    so, I read thread about spool convert to PDF before,
    and know how to convert Spool to PDF file and send mail with attach file.
    but I have a problem.
    my solution as:
    step 1. Call function: "CONVERT_ABAPSPOOLJOB_2_PDF"
    step 2. Call function: "SO_NEW_DOCUMENT_ATT_SEND_API1"
    then, I got a mail with attached PDF file, but the PDF file display limited 255 line.( SO_NEW_DOCUMENT_ATT_SEND_API1 limited)
    I want to showing word is wider that 255.
    and then I find a manual method as:
    After program finished.
    Function Menu -> system -> List -> Send
    use Prog: "Create Document and Send"
    I use this prog sending mail and attached file ,
    PDF file do <b>NOT</b> have 255 word limit !
    finally. my question is, If I want sending mail as Prog: "Create Document and Send", how to do?
    which Function I have to use?...
    Please help me, Thanks!

    Hi,
    Check this sample code of sending spool as attachment to an email address..
    Parameters.
    PARAMETERS: p_email(50) LOWER CASE.
    PARAMETERS: p_spool LIKE tsp01-rqident.
    Data declarations.
    DATA: plist         LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: document_data LIKE sodocchgi1.
    DATA: so_ali        LIKE soli OCCURS 100 WITH HEADER LINE.
    DATA: real_type     LIKE soodk-objtp.
    DATA: sp_lang       LIKE tst01-dlang.
    DATA: line_size     TYPE i VALUE 255.
    DATA: v_name        LIKE soextreci1-receiver.
    DATA rec_tab        LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    Get the spool data.
    CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
         EXPORTING
              rqident              = p_spool
              first_line           = 1
              last_line            = 0
              desired_type         = '   '
         IMPORTING
              real_type            = real_type
              sp_lang              = sp_lang
         TABLES
              buffer               = so_ali
         EXCEPTIONS
              no_such_job          = 1
              job_contains_no_data = 2
              selection_empty      = 3
              no_permission        = 4
              can_not_access       = 5
              read_error           = 6
              type_no_match        = 7
              OTHERS               = 8.
    IF sy-subrc <> 0.
      MESSAGE s208(00) WITH 'Error'.
      LEAVE LIST-PROCESSING.
    ENDIF.
    Prepare the data.
    plist-transf_bin = 'X'.
    plist-head_start = 0.
    plist-head_num = 0.
    plist-body_start = 0.
    plist-body_num = 0.
    plist-doc_type = 'RAW'.
    plist-obj_descr = 'Test ALV'.
    APPEND plist.
    plist-transf_bin = 'X'.
    plist-head_start = 0.
    plist-head_num = 0.
    plist-body_start = 1.
    DESCRIBE TABLE so_ali LINES plist-body_num.
    plist-doc_type = real_type.
    Get the size.
    READ TABLE so_ali INDEX plist-body_num.
    plist-doc_size = ( plist-body_num - 1 ) * line_size
                     + STRLEN( so_ali ).
    APPEND plist.
    Move the receiver address.
    MOVE: p_email  TO rec_tab-receiver,
          'U'      TO rec_tab-rec_type.
    APPEND rec_tab.
    IF NOT sp_lang IS INITIAL.
      document_data-obj_langu = sp_lang.
    ELSE.
      document_data-obj_langu = sy-langu.
    ENDIF.
    v_name = sy-uname.
    Send the email.
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
         EXPORTING
              document_data              = document_data
              sender_address             = v_name
              sender_address_type        = 'B'
         TABLES
              packing_list               = plist
              contents_bin               = so_ali
              receivers                  = rec_tab
         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 e208(00) WITH 'Error'.
    ENDIF.
    COMMIT WORK.
    Send the email immediately.
    SUBMIT rsconn01
    WITH mode = 'INT'
    AND RETURN.
    Thanks,
    Naren

  • How to convert HTML files to PDF files.

    Hi,
    I have an urgent requirement explained below:
    I need to convert my HTML files to PDF file from JAVA program.
    Please help me with your suggestions.
    Your help is highly appreciated.
    Thanks &Regards
    Ramavardhan

    Try FOP and XSL style sheets. Although RPWithey is
    correct that there is nothing to magically change a
    viewable HTML file to PDF you can convert a single
    HTML file to XML and use FOP to create a PDF. You will
    need to manage the transition though.
    If you want to change a random HTML file into PDF
    dynamically this would take quite a bit more work. You
    might be able to use JTidy to convert the HTML to XML
    and then FOP to get to PDF but it will likely not be
    formatted the way you wish.That's true - FOP does do that, doesn't it. It must have to make certain assumptions about the appearance of the output. If the output from the stylesheet is an HTML file, you might be able to bypass that bit altogether. I haven't really looked at FOP, although I've read the overview. Check it out at http://xml.apache.org/fop/index.html.
    RObin

  • Converting HTML Forms to PDF - Field Names

    When I use Adobe 8 to convert and HTML form to PDF all the field names in the resulting PDF have the crazy long names that are jumble of letters and numbers. So I always have to go back through and manually rename every field because I'm using another program to autopopulate the fields with data. Is there any way to get Acrobat to automatically name the fields in the PDF the same as they are named in the form either using the "name" or "id" properties of the HTML fields? I don't understand why this isn't the default behaviour to begin with.

    The reason this is done is due to a fundamental difference between HTML forms and Acrobat forms. In HTML forms, fields with the same name do not necessarily share the same value, whereas in Acrobat forms they do.
    In the conversion process, Acrobat gives each field a unique name, but also sets a field's mapping name to the name the field had in the original HTML form. This is so that if the PDF form is used to submit as "HTML", then the original field names will be used and any server process that is capable of dealing with the HTML form is capable of dealing with the resulting PDF form. So be aware that if you want to use your modified form to submit to a web server using the "HTML" format, the new field names that you set will not be used. What will be used are the hidden mapping names.
    Unfortunately, I don't think there's anything you can do about any of this to make it work like you want.
    George

  • Converting html data to pdf

    Hi,
    I have some html table and data (reports) which are generated by JSP. I want to provide a button for exporting the report content to pdf. I found many tutorials in converting html data to excel. But I want it to be exported to PDF. How can i do it?
    thanx

    You can use libraries like:
    iText, Actuate eSperadsheet Reporting engine to do the Job for you.

  • Archive pdf (table) (converted from spool to pdf(table))

    Hi friends
    I've used CONVERT_OTFSPOOLJOB_2_PDF to convert a spool-request to pdf.
    That pdf (table) I now want to archive.
    Normally I use FM archivobject_create_synchron when archiving OTF-images from a specific path.
    But now I do not have a path to the file - instead I have a pdf (table) that I want to archive...
    Do you have any suggestions how to handle this?
    br
    Henrik

    you need to use the following fms
    - ARCHIVE_NEW_OBJECT
    - ARCHIVE_PUT_TABLE
    - ARCHIVE_SAVE_OBJECT
    - ARCHIVE_WRITE_STATISTICS
    - ARCHIVE_CLOSE_FILE
    and also check SBOOK* programs

  • Converting Smartform spool to PDF results in loss of formatting

    A smart form contains texts which is printed in bold.
    This is clearly visible in both the preveiw and the prionout.
    When we convert the output of a smartform into a PDF form the bold text is converted into a normal text for that font.
    We are using a custom ZARIAL font in the smartstyle, and cannot tell if it is this Z font which the PDF conversion cannot support or if there is some setting which needs to be tweaked.
    Kindly advice.

    Hi
    ZARIAL font which you have created in the smartstyle and used in the smartform is no supporting while converting from OTF TO PDF.
    [Output in PDF Format|http://help.sap.com/saphelp_nw70/helpdata/en/27/67443cc0063415e10000000a11405a/content.htm]
    Regards,
    Sravanthi

  • Problem with characters Converting OTF Spool to PDF

    Hello All,
    Im working on ECC6.0 system. I have a Z report where it will take spool number and mail ID as input.
    It will check wheter the spool is of type OTF of ABAP List, according to that it will use the FMs ONVERT_OTFSPOOLJOB_2_PDF & CONVERT_ABAPSPOOLJOB_2_PDF.
    Now it will download the PDF internal table data into a file using OPEN DATA SET statement as shown below.
      OPEN DATASET gv_dsn FOR OUTPUT IN BINARY MODE.
    *Download the file to application server
      LOOP AT gt_pdf_output.
        TRANSFER gt_pdf_output TO gv_dsn.
      ENDLOOP.
      CLOSE DATASET gv_dsn.
    and it will ZIP the PDF as shown below.
    * open the file from application server for zipping.
      OPEN DATASET gv_dsn FOR INPUT IN BINARY MODE.
      READ DATASET gv_dsn INTO lv_content.
      CLOSE DATASET gv_dsn.
      CREATE OBJECT go_zip.
      go_zip->add( name = gv_file content = lv_content ).
      gv_zip_content    = go_zip->save( ).
    * Convert the xstring content to binary
      CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          buffer        = gv_zip_content
        IMPORTING
          output_length = gv_file_length
        TABLES
          binary_tab    = gt_data.
    After that the ZIP file conataining the PDF will be sent as an attachement to the mail ID given as input.
    Now the problem is some characters of Czech are not coming properly when the attachement is opend once the mail is received. Can any one tell where the problem is and solution.
    Im getting the message "Can not extract the embedded front 'CourierNewL2'. Some characters may not display or print correctly." while opening the PDF in the ZIP attachment.
    Thank you.
    Best Regards,
    Sasidhar Reddy Matli.

    hi
    u also check the following link
    Re: how call FM otf to pdf in a report
    Re: otf to pdf
    Re: Error while converting OTF into PDF in CONVERT_OTF FM
    Re: Convert OTF to PDF problem
    Edited by: krupa jani on Jul 15, 2009 12:58 PM

  • Problem in converting the spool to PDF.

    Hi Experts,
    By useing the prg RSTXPDFT4 I can able to download the pdf file.
    but after that the pdf is not opening and  showing the error as below
    "There was an error opening this document.This file cannot be opened because it has no page"
    Can anybody suggest for the above issue
    Thanks &Regards
    Sanujeet

    Hi
    Just cross verify if in SP02, for your spool request can you open and see the print preview of the print out by click on the sap Script type.
    Check if the form is assigned to the message type.Check print preview of PO while creating PO
    Thanks & regards,
    kiran

  • Sliced Images are Broken after Converting HTML into a PDF

    I am trying to create a PDF of a webpage and after Acrobat converts it, the page is broken apart in multiple pieces. I noticed that this is happening to images that are sliced. Does anyone know how to prevent this from happening?
    Thanks!

    Just to clarify, I only want a PDF image of the web page -no functionality of it. The equivalent of a "print-screen" of the page without the IE window/toolbar etc. I need to have it in PDF format for printing purposes.
    ASP code is also appearing in the PDF and I don't want this to occur.
    Ver: Adobe Acrobat Professional
    OS: WinXP Professional

Maybe you are looking for

  • Help with getting GB to recognise Yamaha NP30 via Tascam US-122MKII?

    I am using a midi OUT connection from my Yamaha NP30 keyboard to the midi IN of a Tascam US-122mkII interface. The Tascam is connected to my Mac via USB (port 1). Tascam software is installed correctly. When I open GB and select 'Piano' in 'New Proje

  • How do you mail merge in the new pages?

    I have a pages document that I merge with an informational spreadsheet for real estate brochures in our office. However, I can't find a mail merge option anywhere in the newest version of pages. Does anyone know a way around this? Any information wou

  • Mac suddenly became very slow on OS-X

    Problem description: Machine became suddenly very slow only on OS-X. Checked with Linux and works ok. Detailed description: On December 31th machine begun to behave abnormally slow.  Long waits between keystrokes and the character appearance on the s

  • Query about scsi-attach

    Hi, I am trying to make scsi devices from OVM 3.0 server visible to RHEL guest "as SCSI". I executed 'xm scsi-attach' command to bind scsi device to a domain xm scsi-attach 0004fb0000060000e36116a4c0038eab /dev/sdl 4:0:1:0 However, after executing th

  • Camera in use by other application?

    iChat AV 4.0.3 (605) Hooked up my new JVC Everio (GZ-HD6) via firewire but iChat says that the camera is in use by another application. I do not have any other video applications open. I even restarted the computer (I did have iMovie HD open previous