PDF from html

I have a large volume of html (currently PDF'ing to around 250 pages) that is generated dynamically.
My question is a simple one but it's driving me to distraction.
How can I control the formtting in the resulting PDF. I'm not asking for anything complex here. I want 12pt body text and everything else relative sized based on em size.
I've tried setting font-size:12pt in body and in a content wrapper div. I've tried it in embedded style sheets and in style attributes.
I've tried create from html in Acrobat 11 pro, print to pdf, save as pdf in chrome and webkit html2pdf on the server. in each case the font is resized to whatever Acrobat thinks is the best fit.
So, yesterday my output was at 11.5pt today it's 12.5 although both are rendered identically on screen and firebug and chrome dev tools both show the text to be set to 12pt prior to output.
I suspect that the culprit here are images and that acrobat 'for my convenience' is automagically resizing to get what it thinks (wrongly) is best fit
Any ideas?

I get what you are saying, but I have no choice over source. The info is an export from a Content Mangement System - several hundred individual web pages that are consolidated into a single lump of html. The native CMS export to word and export to PDF are both very poor for anything other than single pages.
I was hoping to avoid XSL, but accept that it may be my only option - it's years since I've wrestled with that particular nightmare - hopefully there are some tools to make it easier now and I have never created a pdf from xsl formatted xml.
On your second point, yes, once a pdf is created then its font size is fixed, no problem there. The issue is that I can't see any way to fix the size at the point of creation and really, that's the crux of this request - I just want to be able to say to Acrobat that the base font size for this document is 12pt.
Practical example - I run an export yesterday - the body font size is set to something like 11.5pt by Acrobat (despite iit being set to 12pt in the css) but I can live with that as long as it's consistent. Tomorrow, I run it again. A user has added a new image (or any width-settable element) to a page that is maybe 60pixels wider than the pervious largest and the body text throughout the pdf is now 10.5pt.
I understand that this is Acrobat trying to be clever and scaling the text to accommodate the largest element, but I'd much rather tell it to respect the css and truncate or scale the element that doesn't fit - that would be so much easier to troubleshoot

Similar Messages

  • Can't pinch and zoom pdfs from HTML Resources anymore

    After Folio Viewer Update there is no pinch and zoom in pdf from HTML-Resources.
    Before the Update everything works fine in my Folios. Has anybody the same problem?
    I rebuild a Folio V32, Only vertical, Standard PDF - same Problem. (iOS8.0.2. Ipad)
    Is there a solution?
    Thanks

    Yes. I am having the same problem. I cannot pinch and zoom into pdfs from HTMLResources.zip, which is making them unusable in my app for the phone version.

  • Table Header not Recurring - when Generate PDF from HTML with tables

    Hello,  It is not working as expected...and I'm not sure if the functionality is supported.  Want to create PDF from html document. The html document contains a html table that typically contains a large number of rows.  To make reading easier the html table used thead and tbody elements, and their children, so that when the table extends across pages when printed the header element recurs on each page.  However, the header element is not recurring in the generated PDF document (it only occurs in the first row of the table).  Just wondering if you have tried or used this functionality (created PDF from html with table with headers and the PDF included the table with recurring table header.  And if so, did you do anything special to make it work.  Thanks for any insight.

    If there's a problem with that package, I suggest you speak to the developer of that package and ask them to investigate.  It's not an Oracle supplied package so you are wrong to look for help here.

  • While creating pdf from html, the alignment is not proper

    Hi,
    In my application, I am creating a pdf report from html using (using Generate pdf 1.1 - HTML URL To PDF activity) which contains certain images and descriptions.
    But, while generating pdf the alignment is not proper. In the HTML there is no paging, but in the output pdf the image div is getting broken when new pages are generated.
    Some blank areas are coming the report.
    Actually I need an exact replica of the HTML as a pdf, with paging.
    Thank you in advance.

    What is the LiveCycle version?
    Is it possible for you to share an example(somewhere on public file sharing sites)?

  • Create accessible pdf from html pages dynamically

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I created a tool that does just that (only you will need to enter the page numbers as text, it does not work by selecting them):
    Acrobat -- Extract Non-Sequential Pages: http://try67.blogspot.com/2011/04/acrobat-extract-non-sequential-pages.html

  • Create accessible pdf from html page

    Hello,
    I am trying to create a 508 compliant Pdf from a simple HTML page using the HTML to Pdf feature in Livecycle ES4 server. I was able to configure the service to generate tabbed Pdf, but the created Pdf has multiple accessibility issues.
    Some of the issues encountered are:  incorrect tab order,  some links are not tabbable while others are,  link text is being read “Blank”,  some text is skipped while tabbing,  missing alt text for images,  page being rendered in the responsive(mobile) view,  etc.
    I have tried both the available approaches, of 1) providing a URL to create the PDF, and 2) to send the html document as a zipped file, with same results.
    Attached is a sample PDF generated from a simple HTML page I created for demo.
    My questions are:
    Is it possible to generate 508 compliant (accessible) Pdf documents using Html to Pdf service from Pdf Generator? If yes, which settings might I be missing?
    Is there any other service provided by Adobe Livecycle Server that can generate 508 compliant Pdf documents from a 508 compliant HTML page?
    Your help is much appreciated.
    Thanks,
    Anup

    I don't think it's possible to do this using a standard JavaScript script in Acrobat, since the newDoc function doesn't work with URLs.
    The only option I can think of is to use an external automator that will call the Create PDF From Web Page dialog, paste the address from a file, and after the PDF file is created will continue to the next line.
    I might be able to create such a tool for you. If you're interested, contact me by email (click my username for the address) or PM.

  • Create pdf from html, how to adjust page size

    I have a large html file that I need to convert to a pdf. I am able to open the html in acrobat and save as pdf, but I cannot find where to adjust the page size. When I save the html in acrobat, the saved file is still a single page, but when I open the page in reader, then there are page breaks.
    How do I adjust the page size and create a single page document?
    There is also a header and footer line that I don't want. How do I get rid of those?
    LHH

    When you open the window for create PDF from web, select the settings. You can adjust the size and header/footer there.

  • Creating PDF from HTML without background

    Hi,
    I want to create a PDF from a html-page. I tried several ways without success to get a PDF without a background (white). I need a transparent background to add different backgrounds for different pages in Acrobat X Pro.  I use an iMac with OSX 10.10.2, Safari 8.0.4 and have the MasterCollection 6 installed. I tried:
    - print page -> create PDF Result: white background which hides added background
    - print page -> save as Adobe-PDF Result: white background which hides added background
    - in Acrobat: create PDF from web Result: white background which hides added background
    In all cases it doesn't matter if I select "print background" or not. And it doesn't change if I add in the CSS for the web a body {background-color: rgba(255,255,255,0)} or body {background-color:transparent}.
    How can I create a PDF with no or transparent background?

    Hi Manoj
    If your application generate a static html page, you can open those html files with Reports 9i and add a dynamic data sections which would be fetch the data in your html pages with Report servcies. However you can only run those modified pages as a jsp and show the output to browser window.
    Thanks
    Rohit

  • Launch PDF from HTML and execute search

    Is it possible using JavaScript in an HTML doc to launch a PDF and execute a search.query with a passed-in search parameter? TIA

    Hello, George, thanks for following up.  I went into Advanced->Document Processing->Document JavaScripts and put the code at the top of the file outside of the dummy function declaration I had to insert to activate the edit button.  It looks like this:
    // Split the file path into an array
    var aPath = this.path.split("/");
    // Remove the last element, which is the file name
    aPath.pop();
    // Join the path elements back together and add the index file
    var cIdxPath = aPath.join("/") + "/Support Documents/SupDocs.pdx";
    search.query ("Enhanced Tactical Automated Security System (eTASS)", "Index", cIdxPath);
    function Search()
    It runs fine when I launch the PDF directly into the reader by double-clicking in file explorer in the folder above "Support Documents".  When I load the PDF from an HTML file in the same folder, however, the script does not run.  I set the reader preferences to force loading in the reader even when launched from a browser, and the script still will not execute.  I tried adding a button to the PDF and attaching the search script to it.  Again, it runs when launching directly but not from the HTML document.  Otherwise, the PDF is empty, and I'm using a relative URL and JS to load it from the HTML doc, such as:
    document.location = "mySearch.PDF"
    or
    window.open("mySearch.PDF", "searchwin");
    Neither one works.  This product has to run from a CD-ROM, so I haven't bothered to test it via http service.  Any suggestions?  Thanks again!
    Jon Camp
    Senior Computer Scientist
    Applied Research Associates, Inc.
    North Florida Division
    Training Solutions Group
    430 W 5th Street Suite 700
    Panama City, FL  32401
    comm: 850-914-3188 x203
    fax: 850-914-3189
    email: [email protected]

  • Generate PDF from HTML

    Dear All,
           I want to create a pdf document of the html page being displayed on click of a button. I have lot of graphs on the web-page & hence want the same format in the pdf document also. I tried using the HTML loader action block along with PDF actions, but it didnt help.
    FYI.. am using 12.0.
    Can anyone tell me if there is way out to do this?
    Thanks in advance,
    Sushma.

    Sushma,
    your request sounds more like a problem of installing a printer driver that saves the HTML file contents to disc using the pdf file format. Maybe you can use a free PDF tool like PDFCreator which runs on the client.
    You can feed the PDF actions in MII with text or IllumDocs (MII XML contents), but I doubt that it could be done without big effort to parse the HTML. If you want to create PDF in MII it would be a better choice to use the underlying data of the HTML file directly in MII and build the PDF from it, instead of trying to save the HTML as PDF using MII.
    Michael

  • Text Shifting Up in PDF from HTML

    We create our newsletter in HTML and then convert the HTML to a PDF to provide our readers with an easy method of sending it to others or printing it. I know this is far from ideal, but it's what the small nonprofit I work for does.
    We made some changes to the newsletter design and now when we convert to PDF we have a strange problem. The table layout of the newsletter is correct and the HTML elements are placed correctly (tables within the outer table, background images, horizontal rules, etc). However, all of the content within the layout (text, images, divs) are shifted upward by some margin (approximately 6" when printed). I suspect it's some problem with the HTML code elements and how the PDF converter interprets them, but for the life of me, I can't find anything wrong.
    The HTML file is at:
    http://www.eric.org/public/resources/eertemplate.html
    The resulting PDF is at:
    http://www.eric.org/public/resources/Untitled.pdf
    I know that HTML isn't this board's specialty, but I'm hopeful someone may have some ideas or seen this problem before.

    I only have AA5 on this machine, but I opened the HTML file in Acrobat directly and everything seems to be fine. One problem with links is that they open as more of the same PDF. I think you want them to open separately. You might still be able to edit the link properties to open separately.
    When you say your are converting the HTML to PDF, you have not indicated the process. You might try from the Acrobat. A user can right click a link and open it separately, but you might want to check this as the default.
    Bill

  • Bookmarks, named destinations and how to "robust" link to PDF from HTML?

    I need a way to link to topics (from an HTML page) within a structured PDF file generated from InDesign, i.e. one that has an interactive bookmarks
    panel, that doesn't break the links when the file is updated.
    In particular, I don't want to refer to:
    *  page numbers because the document will repaginate when it is updated, breaking existing links
    * named destinations that are numeric as addition/deletion of topics renumbers the named destinations, breaking the links.
    Is there any option in InDesign that creates named destinations derived from bookmark titles as that would seem to solve my problem?

    I did some more trials, and here is where I am at:
    As page-break-after:always; was ignored by PDFGenerator, I used a hack: I wrapped my pages inside div's which have the height of the page, and this seems to work. In addition I had to edit my CSS, and remove the  @media print wrapper around my print specific CSS parts, to get my print media specific formatting inside HTML to the PDF page.
    I do not consider this a solution, but more of a hack - but it might work for what we are doing, and maybe it works for somebody else.
    But what I am actually trying to do is the following:
    We have a systems which creates reports in HTML which can be viewed in a browser, and printed from the browser, now we try to use PDFGenerator, to generate reports in PDF, with a minimal effort ( I know this is a the wrong way arround, HTML is not a language targeted at creating printable reports, but that's what we are doing now, and I think many other people are in the same boat)
    Still if anybody has a better solution, please chime in, or tell me why the hack I did is a real bad idea  - any feedback is welcome
    Thomas

  • Custom page breaks with "@media print" in CSS when creating a PDF from HTML?

    Searching for threads containing the text string "@media print" gave me zero hits, so I guess I'm either the smartest guy in the entire universe for coming up with this idea or the dumbest for the same reason since I must be missing something that everyone else knows by heart without even asking.
    Namely, I would like to make use of the CSS "@media print" wrapper when I'm converting an HTML file to PDF through Adobe Acrobat - as opposed to printing an HTML page through a web browser using the Adobe PDF virtual printer device. These are, as I understand it, two equivalent though not entirely identical (as they make use of and rely on somewhat different settings) procedures that both convert an HTML file into a PDF document.
    Here's my CSS code:
    @media print { span.pagebreak {page-break-before: always} }
    And here's my HTML code invoking the page break:
    <span class="pagebreak"></span>
    Bottom line, this works great when I print the HTML file through my web browser, using the Adobe PDF printer device. However, when converting the HTML file through Adobe Acrobat, this print-related setting is ignored. Obviously, printing and converting a file isn't technically identical but as I said, it's for virtually all intents and purposes the same procedure.
    I'm guessing that someone at the Adobe HQ must have thought through this issue during a brainstorming session and come up with a simple yet elegant solution to cater for the needs of those who want to use custom page breaks when converting their HTML documents directly through Adobe Acrobat. Maybe a simple setting somewhere or a custom CSS tag like "@media adobe", or something similar?

    I've never heard of anyone succeeding in this.

  • Merge option during assembly of PDF from html documents.

    Hello,
    Can LiveCycle create a combined PDF document by converting
    HTML documents to PDF with the option of merging them (eliminate whitespace) during ddx assembly.
    Here is a simple case. Combine three html documents such as
    html-1: contains text ONE
    html-2: contains text TWO
    html-3: contains text THREE
    The default assembled document appears to have three pages with each having a its single word text of content. However, a combined document with one page containing the merged text is desired in some cases.
    Does LiveCycle handle this case. Thanks for any insight.
    Jesse

    Assembler will only deal with PDFs. PDF/G will take non PDF content and make PDF out of it. So in your case you would use PDF/G to change the HTML to PDF then use Assembler to manipulte the three docs into a single doc.
    Hope that helps

  • Process to Generate PDF from HTML Rich Text Editor

    Hi,
    I have a HTML form with the Yahoo Rich Text Editor.
    The Form posts the rich text to a Livecycles process. [REST]
    The input type is String. How could I convert that string into a PDF?
    TIA
    Michael

    Thankyou,
    I saved the input in a temporary file and used the HTML2PDF component, then deleted the temp file,
    Cheers

Maybe you are looking for

  • Multiple Pages in PDF Form

    I have a PDF form that has a total of 5 pages with text fields and navigation buttons. I would like the form to hide/unhide pages based on user input. For instance, the user will start on page 1. Once the user completes all the fields on page 1 the u

  • Please, I need help in this,How to make a tree control appear from right to left ??

    i working on Arabic project in which we use a tree control and i  want it to display its branches from right to left . i tried to rotate it but it doesn't work because the disclosure triangle still appear on the left . i ask if there is any thing to

  • SHD0 for T code MIRO

    Hi all, I am trying to make field ref key # 3 available in a specific screen variant that has already been created. Could you please advise what  box I must check and what does it mean? The program is SAPLFSKB with screen # 0100. thanks so much Brian

  • Can't install app from PC.

    Let me say up front that I am new to the BB world.  However I have been a programmer for 40 years so I usually can get things to work but... I was unable to instlal the user tools from the disk that came with the phone but I downloaded the latest Des

  • FF wants to install fonts on every boot.

    The first things I boot up in the morning are Firefox and Thunderbird. For the past couple of weeks, I have been getting this messages from each of them, asking to install fonts, but they both always name my '''backup''' drive as the intended install