Convert  html 2 pdf

Hi,
I need to convert programmatically a html-site into a pdf document. The pdf-output should look like the printversion of the html-site. Do I have the possibility to make this conversion with help of the adobe document service (java or abap)? If yes, how I do that?
I didn't found any tutorials or documents, which describe the access of the adobe api programmatically. Can you provide some links to such documents?
In the native adobe api it is possible to render a html (or other formats) to pdf. I need the same functionality in my application.
I'm working on SAP Netweaver 2004s SP13, ADS installed.
Regards,
Thomas

You will likely need to set some specific print CSS then because Acrobat is merely a "virtual" printer. I've been looking for a link or two that address this:
http://www.alistapart.com/articles/goingtoprint/
that is one.

Similar Messages

  • How to convert html to pdf using acrobat sdk 8.0?

    hi
    I am a beginner of acrobat sdk .
    I want to know How to use acrobat sdk 8.0 to convert html to pdf?
    herere some questions :
    1:How to support navigation inside PDF file that generated using acrobat sdk 8.0? For example: theres catalog in the top of HTML file, customer hopes can navigate inside the PDF file just like navigating inside the HTML file.
    2:How to support operating some controls in the PDF file that generated using acrobat sdk 8.0? For example: therere some drop down list and text box in HTML file, customer hopes can input text in the text box, click the drop down list to see available options in it just like in HTML file.
    Thanks in advance for any help and suggestion.

    Hello,
    I want a system to re-brand my 37 pages PDF for affiliates.
    I want a php dynamic link in the PDF online in order to personalize automatically the PDF for each affiliate. I need to change 2 links each time. The affiliate ID and the Paypal email (payment button) in page 36.
    Can you help?
    Please let me know
    Thank you
    Alex
    PS My system is online and i can give you the url if it helps.

  • 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.

  • Problem with converting html to pdf using LiveCycle ES Java API

    I am using this code to convert html to pdf.
    * 1. adobe-generatepdf-client.jar
    * 2. adobe-livecycle-client.jar
    * 3. adobe-usermanager-client.jar
    * 4. adobe-utilities.jar
    * 5. wlclient.jar
    import java.io.File;
    import java.util.Properties;
    import com.adobe.idp.Document;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
    import com.adobe.idp.dsc.clientsdk.ServiceClientFactoryProperties;
    import com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient;
    import com.adobe.livecycle.generatepdf.client.HtmlToPdfResult;
    public class ConvertHTML {
       public static void main(String[] args)
            try{
            //Set connection properties required to invoke LiveCycle ES                             
            Properties connectionProps = new Properties();
            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "t3://localhost:7001");
            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);       
            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "WebLogic");
            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
            connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
            //Create a ServiceClientFactory instance
            ServiceClientFactory factory = ServiceClientFactory.createInstance(connectionProps);
              //Create a GeneratePdfServiceClient object
            GeneratePdfServiceClient pdfGenClient = new GeneratePdfServiceClient(factory);
           //Get an HTML document to convert to a PDF document a
            String inputFileName = "http://www.adobe.com";
            //String inputFileName = "C:\\Documents and Settings\\venkat\\Desktop\\Adobe.htm";
            String securitySettings = "No Security";
            String fileTypeSettings = "Standard";
    System.out.println("one");
            //Convert HTML content to a PDF document
            HtmlToPdfResult result = pdfGenClient.htmlToPDF2(inputFileName, fileTypeSettings, securitySettings, null, null);
    System.out.println("two");         
            //Get the newly created document
            Document createdDocument = result.getCreatedDocument();
            //Save the PDF document as a PDF file
            createdDocument.copyToFile(new File("C:\\test.pdf"));
        catch (Exception e) {
            System.out.println("Error OCCURRED: " + e.getMessage());
            e.printStackTrace();
    I can able to compile this class but while running i am getting error like below.
    Error OCCURRED: Internal error.
    ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
            at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java
    :160)
            at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat
    cher.java:57)
            at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
            at com.adobe.livecycle.generatepdf.client.GeneratePdfServiceClient.htmlToPDF2(GeneratePdfSer
    viceClient.java:666)
            at ConvertHTML.main(ConvertHTML.java:84)
    Caused by: java.rmi.RemoteException: Remote EJBObject lookup failed for 'ejb/Invocation'; nested exc
    eption is:
            org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203  completed: No
            at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher.
    java:101)
            at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.doSend(EjbMessageDispatcher.java
    :130)
            ... 4 more
    Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 203  completed: No
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(Unknown Source)
            at com.sun.corba.se.impl.logging.ORBUtilSystemException.writeErrorSend(Unknown Source)
            at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.writeLock(Unknown Source)
            at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.sendFragment(Unknown Source)
            at com.sun.corba.se.impl.encoding.BufferManagerWriteStream.sendMessage(Unknown Source)
            at com.sun.corba.se.impl.encoding.CDROutputObject.finishSendingMessage(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.finishSendingRequest(Unknown Sour
    ce)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete1(Unkno
    wn Source)
            at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(Unknow
    n Source)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(Unknown Source)
            at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(Unknown Source)
            at org.omg.CORBA.portable.ObjectImpl._is_a(Unknown Source)
            at weblogic.corba.j2ee.naming.Utils.narrowContext(Utils.java:126)
            at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContext(InitialContextFact
    oryImpl.java:94)
            at weblogic.corba.j2ee.naming.InitialContextFactoryImpl.getInitialContext(InitialContextFact
    oryImpl.java:31)
            at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:41)
            at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
            at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
            at javax.naming.InitialContext.init(Unknown Source)
            at javax.naming.InitialContext.<init>(Unknown Source)
            at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initJndiContext(EjbMessageDispat
    cher.java:213)
            at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.getJndiContext(EjbMessageDispatc
    her.java:226)
            at com.adobe.idp.dsc.provider.impl.ejb.EjbMessageDispatcher.initialise(EjbMessageDispatcher.
    java:87)
            ... 5 more
    can u plz give me some way to do the convertion.

    Yes Sir.....Thanks for ur suggestion.....
    But i didn't find exact solution..well..yes i found some but not exactly there were not in the way i required...I jus need to convert HTML to PDF using iText API for java.....I already used some classes in that like HTMLParser.....etc..
    So Any thing else...Any one...Sure can help me in this................

  • How do i convert a pdf file into a html file?

    need help with question

    Hi Wolfie1234,
    You can use Acrobat 11 to convert a pdf to html.
    Launch Acrobat. Click on File > Save as Other > HTML Web Page

  • How can I convert a .pdf to a single file HTML file in Acrobat 9 Pro?

    I need to convert a .pdf with active links to a single file HTML file.  Any advice?

    LGINSB wrote:
    Yes, but it's saving it with files associated.  I need it to be a single file version.  Thanks for the reply.
    Of course it is. It sounds like what you want would be just a .jpg. Web pages are seldom ever just one file unless they are strictly text. More than likely you have some images (maybe even images of text) involved so you could never get one file.

  • Pdf/convert html to pdf butoon option

    Hello I have 2 pages menu page and act_citywide
    Menu page has a menu to select pdf or other 2 option. and a
    button.
    Act_citywide has the query and action.
    I wish to create a button that will have a convert to pdf as
    opposed to these option of radio buttons and button.
    What do I add to this program and where?
    thanks or maybe just add another button that will convert to
    pdf
    Thanks
    Menu Page
    <cfquery name="getCityWideCases" datasource="cts9i">
    SELECT
    --PROP.STR_NBR
    --,PROP.STR_FRAC_NBR
    --,PROP.STR_FRAC_NBR_RNG_END
    --,PROP.STR_DIR_CD
    PROP.STR_NM
    --,PROP.STR_SFX_CD
    --,PROP.STR_SFX_DIR_CD
    --,PROP.STR_UNIT_TYP_CD
    --,PROP.UNIT_NBR
    --,PROP.PROP_ID
    --,PROP.ZIP_CD
    ,CASE.CASE_NBR
    --,CASE.CASE_ID
    --,CASE.CASE_TYP_CD
    ,CASE.CRTN_DT
    --,APLC.PROJ_DESC_TXT
    --,TYP.CASE_TYP_DESC
    FROM
    CTS.TLA_PROP PROP
    ,CTS.TLOC L
    ,CTS.TCASE CASE
    --,CTS.TAPLC APLC
    --,CTS.TREF_CASE_TYP TYP
    WHERE
    PLAN_AREA_NBR = '1'
    AND L.LOC_ID = PROP.PROP_ID
    AND CASE.APLC_ID = L.APLC_ID
    AND PROP.STR_NM != 'TEST'
    --AND CASE.PARNT_CASE_ID IS NULL
    ORDER BY
    <cfswitch expression="#Form.orderBy#">
    <cfcase value="CASENUMBER">
    CASE.CASE_NBR
    </cfcase>
    <cfcase value="CREATIONDATE">
    CASE.CRTN_DT
    </cfcase>
    </cfswitch>
    </cfquery>
    <!---html report--->
    <cfswitch expression="#Form.outputFormat#">
    <cfcase value="HTML,PDF">
    <cfsavecontent variable="htmlData">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Citywide Cases Report</title>
    </head>
    <style type="text/css">
    td{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    font-weight:bold;
    background-color:#FFFF99;
    h2{
    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    h3{
    font-family:Arial, Helvetica, sans-serif;
    font-size:15px;
    </style>
    <body>
    <cfoutput>
    <table border="0" cellpadding="3" cellspacing="0">
    <tr>
    <td align="center">
    <h3>Citywide Cases
    Report</h3><br><br></td>
    </tr>
    <tr>
    <td align="center">
    </h2>Your query returned
    #getCityWideCases.RecordCount# records</h2></td>
    </tr>
    <tr>
    <td>
    <table border="2" cellpadding="2" cellspacing="0">
    <tr>
    <th>Record Number</th>
    <th width="120">Case Number</th>
    <TH>Creation Date</TH>
    </tr>
    <cfloop query="getCityWideCases">
    <tr bgcolor="<cfif currentrow mod
    2>GHOSTWHITE<cfelse>WHITE</cfif>">
    <td>#CurrentRow#</td>
    <Td>#CASE_NBR#</td>
    <td>#dateformat(CRTN_DT,"mm/dd/yyyy")#</td>
    </tr>
    </cfloop>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    </cfoutput>
    </cfsavecontent>
    <cfswitch expression="#Form.outputFormat#">
    <cfcase value="HTML">
    <cfoutput>
    #htmldata#
    </cfoutput>
    </cfcase>
    <cfcase value="PDF">
    PDF
    <cfdocument format="pdf">
    <cfoutput>
    #htmldata#
    </cfoutput>
    </cfdocument>
    </cfcase>
    </cfswitch>
    </cfcase>
    <cfcase value="CSV">
    <CFHEADER NAME="Content-Disposition" VALUE="attachment;
    filename=citywide.csv">
    <cfcontent type="application/msexcel">"Case
    Number","Creation Date"
    <cfoutput
    query="getCityWideCases">#ltrim(CASE_NBR)#,"#dateformat(CRTN_DT,"mm/dd/yyyy")#"
    </cfoutput>
    <cfabort>
    </cfcase>
    </cfswitch>
    <cfquery name="getCityWideCases" datasource="cts9i">
    SELECT
    --PROP.STR_NBR
    --,PROP.STR_FRAC_NBR
    --,PROP.STR_FRAC_NBR_RNG_END
    --,PROP.STR_DIR_CD
    PROP.STR_NM
    --,PROP.STR_SFX_CD
    --,PROP.STR_SFX_DIR_CD
    --,PROP.STR_UNIT_TYP_CD
    --,PROP.UNIT_NBR
    --,PROP.PROP_ID
    --,PROP.ZIP_CD
    ,CASE.CASE_NBR
    --,CASE.CASE_ID
    --,CASE.CASE_TYP_CD
    ,CASE.CRTN_DT
    --,APLC.PROJ_DESC_TXT
    --,TYP.CASE_TYP_DESC
    FROM
    CTS.TLA_PROP PROP
    ,CTS.TLOC L
    ,CTS.TCASE CASE
    --,CTS.TAPLC APLC
    --,CTS.TREF_CASE_TYP TYP
    WHERE
    PLAN_AREA_NBR = '1'
    AND L.LOC_ID = PROP.PROP_ID
    AND CASE.APLC_ID = L.APLC_ID
    AND PROP.STR_NM != 'TEST'
    --AND CASE.PARNT_CASE_ID IS NULL
    ORDER BY
    <cfswitch expression="#Form.orderBy#">
    <cfcase value="CASENUMBER">
    CASE.CASE_NBR
    </cfcase>
    <cfcase value="CREATIONDATE">
    CASE.CRTN_DT
    </cfcase>
    </cfswitch>
    </cfquery>
    <!---html report--->
    <cfswitch expression="#Form.outputFormat#">
    <cfcase value="HTML,PDF">
    <cfsavecontent variable="htmlData">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Citywide Cases Report</title>
    </head>
    <style type="text/css">
    td{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    th{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
    font-weight:bold;
    background-color:#FFFF99;
    h2{
    font-family:Arial, Helvetica, sans-serif;
    font-size:14px;
    h3{
    font-family:Arial, Helvetica, sans-serif;
    font-size:15px;
    </style>
    <body>
    <cfoutput>
    <table border="0" cellpadding="3" cellspacing="0">
    <tr>
    <td align="center">
    <h3>Citywide Cases
    Report</h3><br><br></td>
    </tr>
    <tr>
    <td align="center">
    </h2>Your query returned
    #getCityWideCases.RecordCount# records</h2></td>
    </tr>
    <tr>
    <td>
    <table border="2" cellpadding="2" cellspacing="0">
    <tr>
    <th>Record Number</th>
    <th width="120">Case Number</th>
    <TH>Creation Date</TH>
    </tr>
    <cfloop query="getCityWideCases">
    <tr bgcolor="<cfif currentrow mod
    2>GHOSTWHITE<cfelse>WHITE</cfif>">
    <td>#CurrentRow#</td>
    <Td>#CASE_NBR#</td>
    <td>#dateformat(CRTN_DT,"mm/dd/yyyy")#</td>
    </tr>
    </cfloop>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    </cfoutput>
    </cfsavecontent>
    <cfswitch expression="#Form.outputFormat#">
    <cfcase value="HTML">
    <cfoutput>
    #htmldata#
    </cfoutput>
    </cfcase>
    <cfcase value="PDF">
    PDF
    <cfdocument format="pdf">
    <cfoutput>
    #htmldata#
    </cfoutput>
    </cfdocument>
    </cfcase>
    </cfswitch>
    </cfcase>
    <cfcase value="CSV">
    <CFHEADER NAME="Content-Disposition" VALUE="attachment;
    filename=citywide.csv">
    <cfcontent type="application/msexcel">"Case
    Number","Creation Date"
    <cfoutput
    query="getCityWideCases">#ltrim(CASE_NBR)#,"#dateformat(CRTN_DT,"mm/dd/yyyy")#"
    </cfoutput>
    <cfabort>
    </cfcase>
    </cfswitch>

    I'm not sure it'll help you, but take a look at
    http://xml.apache.org/fop/index.html
    maybe you can go this way
    XHTML->XML->FOP->PDF
    ???

  • Convert HTML TO PDF

    Hello Experts,
    I need to convert the document type HTM to PDF then send it thru e-mail as attachment, is there any FM for this?
    I'm looking at this FM CONVERT_ABAPSPOOLJOB_2_PDF, but i think it requires a spool id and the program is required to run in foreground. Any idea?
    Thank you!

    Hi Jerome,
    Click on below two links:
    [How to convert HTML output to pdf output to save the file locally;
    [Convert HTML File to PDF;
    BR
    Dep

  • Solutions for converting HTML to PDF programatically?

    to start off i should say that i am rather new to programming in java.
    here's what i am attempting to do.
    i need to write a java class that will get an HTML string as input... and needs to spit out a PDF file (or outputstream) as output. i have spent the last week or trying to accomplish this using XSL-FO and the FOP library. this solution does not work too well because XSL-FO and FOP do not handle complex table layouts very well (since they require the number of columns and column widths to be known in advance). it seems that FOP (and XSL-FO) is better suited to handling structured XML input... not something unstructured and complex as HTML.
    are there any other libraries/APIs that are out there that are specifically well suited to HTML -> PDF conversion?
    remember this needs to be done programatically, and will probably be invoked as a webservice.
    thanks,
    vivek

    #1 There are definite copyright issues with your
    software. Before you go live with anything like this,
    make sure you're not gonna get reamed.Ehh? I didn't see anything from the OP's question that implied this. Yes, if he uses it to mine commercial web sites and convert them to PDF's there's a problem, but aside from that, where's the danger?
    #2 The PDF part is the easy part. As the other poster
    said, lowagie iText can do PDF. The rendered HTML is
    a much bigger question. The smaller issue is that web
    pages are defined to fit your browser window, so
    you've got to choose a size. The much tougher problem
    is finding a decent HTML renderer in Java. In truth,
    I don't think there is one; JEditorPane is a piece of
    ****, and opera is really not a lot better. Not at all. The OP specifically mentioned web services, so we don't need to assume that Swing is involved. You can, using a 3rd party library (google for java pdf), have a servlet or jsp render its output as a PDF document.

  • Convert html into tidy html to convert pdf using iText

    hello.
    I am try to convert html document into pdf.
    first i tried iText it works properly. but it needs all the tags to be witten correctly.
    when u try html not well formeted it gives an exception.
    So is there any way to convert html to pdf.
    or if not if not then way to convert html into properly taged HTML
    so it s easy to convert it to html,
    If you have any working example of Tidy.jar please send me.
    Thanks..

    Hi,
    I had a similar tasko to do i.e converting HTML to PDF.
    Please follow the link to this site and download the trial code.
    http://www.pd4ml.com
    I was able to convert my HTML to PDF.
    Have a look at it and let me know.
    Regards,
    Joe

  • How to convert HTML to PDF

    - runs on Linux, 2.4.24 Kernel.
    - We would like to be able convert the HTML report into a PDF file.
    - Ideally we would like to use open source code for the PDF generation
    We would like to be able to include both Text and Bitmaps in the PDF output
    Thanks!
    Message was edited by:
    dragontail77

    HTML to PDF with Java, using OpenOffice.org - example here: [http://www.dancrintea.ro/html-to-pdf/|http://www.dancrintea.ro/html-to-pdf/]
    You can use OpenOffice.org, running as a server and command it remotely for document convertion.
    Besides HTML to PDF, there are also possible other convertions:
    doc --> pdf, html, txt, rtf
    xls --> pdf, html, csv
    ppt --> pdf, swf
    Code example:
    import officetools.OfficeFile; // this is my tools package
    FileInputStream fis = new FileInputStream(new File("c:/test.html"));
    FileOutputStream fos = new FileOutputStream(new File("c:/test.pdf"));
    // suppose OpenOffice.org runs on localhost, port 8100
    OfficeFile f = new OfficeFile(fis,"localhost","8100", true);
    f.convert(fos,"pdf");
    -----------------------------------------------------------------------------------------------------------------------------------------

  • Is it possible to convert HTML to PDF without pagination?

    I have an HTML file that I'd like to convert to PDF. Ideally, I'd like the PDF to consist of one long page without being broken up into different pages. Is this at all possible?
    I also don't want to scale the image down too far as to make it unreadable. I've tried adjusting the page size settings, but the biggest page I can generate is a portrait-oriented tabloid (14 x 17) page, but it still prints to more than one page.
    If pagination can't be suppressed, does anyone know of any HTML/CSS code that I can use to break the pages in certain spots? If I'm forced to use a paged PDF, I at least don't want the articles within the page to break in the middle.
    I'm using Acrobat Pro XI on a MacBook Pro. Browser-wise, I have Firefox, Chrome and Safari installed, if opening the HTML file in one of them makes any difference.
    Thanks in advance, aj

    You can actually create a custom page size BUT you have to go through the Acrobat interface
    File>Create>PDF From Web Page...>
    In the Create PDF from Web Page window, put in the URL you want to capture
    In the Create PDF from Web Page window, click the Settings button
    in the Web Page Conversion Settings window click the Page Layout tab
    In the Size sections', Page Size pop-up menu select Custom
    In the Width field, set the size of the page width in inches
    in the Height field set the page height in inches
    In the Margins section, set you margins (Top, Bottom, Left, Right) in the appropriate fields in inches
    In the Orientation section set either Portrait or Landscape
    in the Scaling section set whether or not you want scale the page content
    in the Web Page Conversion Settings window click the OK button
    In the Create PDF from Web Page window click the Create button.

  • Is there anything to do with IE when convert html to PDF?

    Happy Christmas everyone !
       We find that the PDF Generator  can not convert to the same display result for Chinese words in html ,such as "<B>中文</B>","<strong>中文</strong> ", when converted , the pdf seems not to be bold , and the italic words are not so same as  they are in the html .
    And we find that when we print the html in Adobe Acrobat 9.x , it works very well .
    Some of us think that perhaps there is something to do with the html parser , i.e. Internet Explorer .
    So who can tell me why , and how can I resolve this case ?
    Any advice is appericiated !

    Happy Christmas everyone !
       We find that the PDF Generator  can not convert to the same display result for Chinese words in html ,such as "<B>中文</B>","<strong>中文</strong> ", when converted , the pdf seems not to be bold , and the italic words are not so same as  they are in the html .
    And we find that when we print the html in Adobe Acrobat 9.x , it works very well .
    Some of us think that perhaps there is something to do with the html parser , i.e. Internet Explorer .
    So who can tell me why , and how can I resolve this case ?
    Any advice is appericiated !

  • Is anybody programmatically converting HTML to PDF? If so, how?

    Is anybody programmatically converting HTML to PDF? If so, how?
    With InDesign, or something else?
    As long as the application (InDesign or something else) has a command-line interface, i'd like to know about it.
    Am using .NET, but we still want to know what you're doing even if you aren't.
    Source data is HTML pages from random sources, so it's not necessarily XHTML unfortunately, though i could tidy it into a consistent form.

    thanks, but what i'm looking for here is programmatic usage -- that is, scripted or command-line -- not having a human user choosing menu options, etc
    so as to your two suggestions ...
    this would appear to be NOT programmatic ...
    > And Acrobat will install a PDF convert toolbar for Internet Explorer to do this right from the browser.
    and this might or might not be possible to program -- i don't know if people are somehow running Acrobat programmatically, would appreciate further information
    > Acrobat has a Create PDF from Web Page function

  • Acrobat 8.1 Pro .mht And Some .html files Do Not Convert To PDF

    Acrobat 8.1 Pro with Windows Vista. .mht files are saved complete webpage single files similar to complete html files except they're as a single file instead of a file and a folder. When using Create From File, Acrobat does not recognize .mht files and will not convert them to PDF. Some complete .html files will not convert using Create from File, even though Acrobat does recognize them.
    Also, when I'm logged into a website and want to convert a webpage to PDF using Create From Web, often the resulting PDF document is of the login page and not the page I selected with the error message "can't locate file". These difficult webpages can be converted to PDF using the Print Adobe PDF function, but hyperlinks are not preserved with this function.
    I would like to be able to convert all files (including .mht) and webpages to PDF while preserving hyperlinks. Can anyone help me with this?

    Bruce,
    mht files are not standard html files. Acrobat will not handle those. If
    you are on a website that most be logged into, then Acrobat cannot get
    to those files since it is not logged in. You can print to pdf, since
    your browser is logged in.
    Mike

  • Trouble in fop(convert html 2 pdf) source.

    to convert html 2 pdf file I found the article from javaworld.
    (http://www.javaworld.com/javaworld/jw-04-2006/jw-0410-html.html)
    unfortunately I can't seem to find the two classes below even though import all fop 0.94 library files.
    are there something I'm missing?
    Thanks.
    import org.apache.fop.apps.Driver;
    import org.apache.fop.tools.DocumentInputSource;

    Much thanks for your timely reply.  The scanner software requires that one must scan to an application.  The configuration has to point to an executable.  In program files I must select an executable,  in this case acrobat.exe.   Have been using this for years and never have seen a problem.  Continues guidance sought.

Maybe you are looking for

  • Jabber 4 Everyone default service profile

    Hello all, A customer running UCM 9.1.2 with IM&P 9.1.2. They have rolled out Jabber Desktop as the default application for IM and Presence for the organization. We have setup several "SERVICE PROFILES" inside of UCM to differentiate between Ehanced

  • Can one use a Time Capsule to backup Two Computers?

    Sorry for what is likely such a dumb question, but Iif I bought a new Time Capsule with 3TB of storage, could I use this to backup two different computers on our home network? And if so, could I generate an encrypted disk image (using Apple's Disk Ut

  • My iTunes refuses to open (Quicktime too)

    I'm more concerned about my iTunes though. Whenever I click the desktop icon for iTunes, a window pops up titled "iTunes Software License Agreement" and my cursor would automatically be placed in the "Disagree" tab. The window stays for at most 1/2 o

  • Useful life

    Hi gurus when i am creating an asset , useful life of an asset is the compulsory field coming and also it is asking for more than the minimum life specified . i want to remove this requirement . how to do this  plz suggest . thanks

  • Doubt Regarding IDOC generation

    IDocs are used for asynchronous transactions: each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database. where can i see the generated IDOC's in R/3.