Page break problems converting HTML to PDF

hello,
i'm using Acrobat Pro 7... yes I know I'll upgrade soon.
I have a bunch of HTML files that are interlinked, and I want to create one big PDF from them.
I'm going in through Windows explorer, selecting all the files, right-click, and click on "combine in adobe acrobat"
it works very well, to combine them all.
the one problem I'm having is page breaks. there are page breaks in the middle of tables.
I have seen online a few references to using CSS style and something like this:
TABLE { PAGE-BREAK-INSIDE: avoid; }
but it seems to have no affect when I generate the PDF.
do I need a different tool to make this work? Does Acro 8 or 9 have it? should it work with 7?
thanks

This is primarily a HTML feature as I understand it. Acrobat simply provides a PDF just like any other printer and the HTML would have to be set to add page breaks on print as you suggest. This would be the same case as if you printed to paper. I am not sure it is possible, but that is what I would look for, not Acrobat options.

Similar Messages

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

  • 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

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

  • I am having a problem converting word onto PDF . PDF into word.Please help .I am signed and paid to Feb 2015

    Can someone advise me why I am having this problem

    Always in the past .I have my Word Document on screen and then I go to 
    Publish and it atomatically PDF the doc.
    The same if I have a PDF to convert to word. I have the PDF on screen and 
    to the right of my screen it will say Convert .I press on convert it
    converts to  word
    In a message dated 12/17/2014 10:01:32 A.M. Eastern Standard Time, 
    [email protected] writes:
    I  am having a problem converting word onto PDF . PDF into word.Please help
    .I am signed and paid to Feb 2015
    created by florencejohn (https://forums.adobe.com/people/florencejohn) 
    in  Adobe Acrobat.com Services - View the full  discussion
    (https://forums.adobe.com/message/7023171#7023171)

  • I am having a problem converting a scanned pdf file into Excel.

    I am having a problem converting a scanned pdf file into Excel. I do not get the columns and rows to align, just a single column of everything. Any suggestions?

    Export makes use of what is "in" a PDF.
    Good export is the "silk purse" and, ya know, you canna make a silk purse from a sow's ear (which is what any scanned image in PDF is with regards to export).
    The quality of export is dictated by the quality of the PDF. We are taking about the "inner essences" of the PDF (e.g., degree of compliance with the PDF Standard - ISO 32000-1).
    So, what goes in goes out or "GIGO".
    This has nothing to do with Acrobat or Acrobat's export process.
    A well-formed Tagged PDF (compliant to ISO 32000-1 & ISO 14289-1, PDF/UA-1) provides a PDF that proactively
    supports content export by Acrobat.
    To get the good stuff from export you start with a well-formed Tagged PDF.
    Goodstuff In — Goodstuff Out
    or
    Garbage In — Garbage Out
    "GIGO"
    Be well...
    Message was edited by: CtDave

  • Problem with page size when converting spool to PDF

    I have a SmartForm invoice which is formatted perfectly when I print it using the printer options specified when I open the form. However, when I send the output to spool, convert it to PDF using FM CONVERT_OTFSPOOLJOB_2_PDF, then print to the same printer, the format is not correct.
    The PDF generation feature treats the page (standard letter size, portrait) as too large and shrinks the output to fit the page. It scales the entire invoice down by about 1/4 inch, which throws off our mailing envelope.  If I change the page scaling option of Adobe Reader to 'None', my invoice is scrunched up into the top left corner of the page.
    My page format is LETTER Portrait.
    Any help or suggestions will be appreciated. Thanks.

    hello see the sap note 843480

  • Page Break when converting to PDF

    I have created my forms online and deleted a bit of content to reduce their size.  I also adjusted the page breaks in pdf/print view mode.  When I download the PDF, I find excess blank pages in the PDF and the page breaks I set are not where I put them.  Any thoughts on how I can fix this without having to rebuild the online survey from scratch?

    Hi,
    It would be easier to help resolve this issue if I had access to your form design. You can share it with me in one of two ways:
    1. Add me ([email protected]) as a collaborator. To do this follow steps 1 and 2 described in the following FAQ:
    http://forums.adobe.com/docs/DOC-1424
    2. Export the form and email the design template (.fcdt file) to me - [email protected]
    Thanks,
    Brian

  • PROBLEM converting word98 to PDF

    Hello,
    I'm having a problem converting word documents into PDF.
    I have a word doc that includes some photos that won't
    transmit in email without distoring the text and images.
    So I wanted to make it a PDF so its all "fixed" and stationary.
    My OS is Panther 3.9
    But my Microsoft Word 98 program I use works from Classic (9) system
    For whatever reason my Acrobat (OS X3.9) isn't working (worry bout that later) but my Preview works.
    I just downloaded a free "Text to PDF" convert program for Mac
    it converts the text (but alters it) and won't do the pics AT ALL
    plus it has a bunch of random coding poping up in it.
    Does someone have the answer to this problem?
    Any recommendations on some freeware program downloads?
    Thanks - coldgooseman

    I appreciate all of your help.
    *TO ROAM:*
    +*For the document, if you click on Print (Command + P), then choose Save as PDF, does that work?*+
    When I go to Print in Micrsoft Word 98 there isn't anything that suggest it cann do that. The winnndoww comes up and there's a tab named "Print" with the ffollowing options I can scroll down & choose:
    Document
    Document Prperties
    Commentsss
    Stylessss
    Autotext EEEntries
    Key Assignments
    That’s it, there's nothing anywhere in Microsoft Word 98 that I can find that will allow me to Save as PDF. Besides Print, the options if I go to "Save As" are only:
    Document Template
    Text Only
    Text Only With Line Breaks
    MS-DOS TEXT
    MS-DOS TEXT With Line Breaks
    RICH TEXT FORMAT
    UNICODE TEXT
    STATIONARY
    SPELLER CUSTOM DICTIONARY
    SPELLER EXLUSIVE DICTIONARY
    HTML Document
    WORD 4.0
    WORD 5.0
    WORD 5.1
    WORD 6.0 /95
    *TO ALLAN JONES:*
    +*consider upgrading to Office X or 2004 so you can do everything in OSX. I've had no trouble making PDFs from OSX Word docs.*+
    Yeah I don't have money for that one right now. But I thought surely there was a quick free download I could get somewhere that would do the job.
    +*A no-cost option is to save the Word Doc as an rtf file and see if all attributes are preserved. Then open it with TextEdit in OSX and see if it still looks right. If it does, print from TextEdit selecting the "Save as PDF" option.*+
    I'll see if I can do that.
    +*It's probably worth your while to see if you can get Acrobat working (if it's the OSX version).*+
    I swear I had a Acrobat 6 but all I find is Acrobat 3. (I've never had reason to use it until now. I always Just use Preview to look at stuff.
    *TO CORNELIUS:*
    +*1. How long is this Word document and how many pictures?*+
    14 pages
    +*2. Does it have a .doc extension at the end of the file name?*+
    I just tried that as you suggested and it WAS a little better. That is, the image started off with the right fonts and space right but as it went on it got more and more off.
    AND it still didn't show any images (just blank spaces between text bodies.)
    +*3. Is this a formal or business type communication, or personal email?*+
    Its formal (an official report on a trip which is why I need the photos to be viewable.)
    +*4. Are you sending it as an email attachment?*+
    YES
    +*5. What email are you using e.g. webmail like Hotmail, Apple Mail etc.?*+
    Hotmail
    +*6. Are you booted in OS X and working in the Classic environment, or booted and working in OS 9?*+
    I'm working in OSX3.9 and the Classic Version opens up in it for Microsoft Word 98

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

  • Converting HTML into PDF

    Hello ABAP Experts,
    I have a request to convert a HTML Response (FM: HTTP2_GET) into a PDF Document.
    Has any body an idea how to handle that.
    Thank you very much for you answers.
    Kind regards
    Axel

    The easiest way to convert web pages/sites into PDF is with Acrobat! Important: this is Acrobat (costs a few dollars) and not Acrobat Reader!
    Acrobat has a web capture tool. With the older version I tested there was some minor problems.
    (1) It is not recognized as a browser we support. You will have to knock out the browser checking for this to work. Look at the cl_htmlb_content->runtime_validation. The last case statement. Modify your system to temporarily comment this out. (Do not forget to place it back!).
    (2) The older version I tested with had problems to convert complex pages into PDF. The new rendering we use is to browser specific. Your milage might vary.
    Alternative could be just to "print" the page from the browser into a PDFWriter (kind of printer driver that comes with Acrobat). This actually worked very well.
    Alternative is just to make screenshots into word document and convert this into PDF.
    > Please help me ..
    With this, I think we have now helped you. In return, you can help us with a nice append (or better a small weblog) about the "huge project that was a challange". These war stories shared by the fire side makes for interesting reading, and I am sure other people would also be interested in seeing what you achieved. Looking forward to it.
    ++bcm

  • How to remove page breaks in converted document

    This is probably more a Microsoft Word problem, but it started out as an InDesign document, so I thought it wouldn't hurt to post the question here in case someone else has encountered a similar problem.
    I formatted an epub on Amazon for my job. Since I am more familiar with InDesign, I used it along with Amazon's script to turn it into an epub.
    Since then, I've noticed the cover has inexplicably rotated 90 degrees on Amazon. I asked about it in Amazon's forums, and they said InDesign isn't really reliable for epubs.
    So I'm trying to recreate everything in Word. The original Word document isn't up to date with all the editing and corrections I did, so I exported each InDesign chapter document into a PDF, then used Adobe Acrobat to save each PDF as a Word document.
    Some of the resulting Word documents seem to be littered with multiple page breaks and/or section breaks. I'm able to delete most of them, but some of them fall right in the middle of a sentence and won't delete. I've selected the paragraph icon in the ribbon to turn on invisible characters, and I can't see a page or section break indicated in most of these breaks.
    Anyone know what might be causing these and how to delete them?
    Maybe I should just copy everything from my InDesign documents and paste them into Word instead?

    Hello,
    If your reports is executed in the MODE CHARACTER , the "Page Break" generaed in the output is the one defined in the prt file
    Code Name : after page
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/files/printing/printer_def_file_syntax.htm
    regards

  • Adjust page boundary when converting eps to pdf

    Hi, I have a problem with the page boundaries when converting eps files to pdf files. The resulting pdf page boundary is the bare minimum around the eps objects, leading to different page sizes when the pdf is viewed on screen. I would like all of my pdf objects to have the standard letter (8.5 by 11 inch) page boundary. Furthermore, when the pdf is printed the size of the objects is not to to the same scale as the eps file (which was created in adobe illustrator), and the orientation of the picture is often rotated to what is displayed on the eps or pdf file! Can anybody help me with this problem?

    I opened Distiller from the regular programs menu. I have a job settings file selected that has a 8.5X11 size. I opened a 5.5X7.5 EPS file in Distiller and it creates a PDF with the image at the bottom of the 8.5X11 page. You can also simply open the PDF that you already have and print to a new PDF -- selecting expand to fit if desired.

  • Page Size When Converting TIFF to PDF

    In my work I download documents from a website where you can only view and save them as TIFF images. The documents are scanned images of typewritten instruments filed with the county clerk. When saved as TIFFs, the documents are of varying sizes. After I save them as TIFF files, I convert to pdf using select (often multiple files at once), then right click "Convert to Adobe PDF." The files convert to pdf without a problem, except they are of many different page sizes, depending upon the size of the TIFF file.
    I am using Adobe Acrobat X Standard (Windows 7 on a PC). Is there a way to set it up so when I convert from TIFF to pdf, it will come out as a standard page size, such as legal 8.5x14? I know that I can convert, then print using the Adobe PDF printer, but that just adds another step.
    Would the answer be different if I were using Acrobat X Pro or Acrobat XI? Thanks.

    TIFF files contain a page size, and when converted to PDFs, the page size from the TIFF is used.
    So you need to fix it in the TIFF before conversion or the PDF after conversion. I think the TIFF will probably be a better, easier and cheaper place to fix it.

Maybe you are looking for

  • Purchase price variance in subcontracting order

    Our customer has the following scenario:      Purchase account is posted with the value of stock subsequently purchase price variance is a legal account      Material ledger is active      Inventories are managed with standard price for each mater

  • Z report for BED, ECS VAT values

    Hello Experts, Here I have an issue we have developed the zreport for fetching the BED, ECS and Basic amount values for the particular Purchase orders with invoice posting dates as intial parameters. The report is giving error for each line items...t

  • Flash not showing

    Hi there, I am using swf files for headers on my website. All has worked well until tonight. If I clear my browsing history in IE then go to my website, the swf does not show on the index page (index page only thus far).  If you refresh the browser t

  • Duplicate binding of selection menus

    I have 3 'selection lists' within a cfform type=html (AJAX) that are pulling the same data. One in the search area of the form, a second in the edit area not near the first, allowing the user to select a new option and a third on a seperate tab in an

  • Report Printout Through  APPS 11.5.5

    I have report in Report 6i, and through this report is running fine and page setting is proper, but when I placed this report in APPS 11.5.5 it is running fine but when I try to take printout on printer it is not skipin on next page according to sett