Forum Replies Created
-
AuthorPosts
-
in reply to: UTF – 8 char issue February 10, 2012 at 13:41#28569
Please try the following:
https://pd4ml.com/i/allfonts.zip (34 MB!)
I assume you own at least one license of MS Win, so there is going to be no font licensing issues.in reply to: Table cell border not drawn after page break February 10, 2012 at 13:38#28850It seems to be an interference between “border-collapse: collapse” style and previous borderless row.
We’ll check what could be done to fix the issue.
in reply to: Cache issue February 8, 2012 at 18:21#28743Does it mean, the CSS link in your scenario remains the same, but the document, it returns, changes from time to time?
in reply to: Exclude a couple of H1 and H2 Tags, but not all of them February 8, 2012 at 18:17#28740PD4ML can generate TOC and bookmarks (outlines) from H1-H6 structure.
Bookmark structure usually appears in a side frame of Acroread viewer; TOC is inserted as a substitution of tag into the document body.
pd4ml-bookmark-visibility property impacts generation of bookmarks only.
Currently we work on the documentation update, the work is not done yet. But you may take a look to the relevant sections – hopefully it helps:
TOC: https://pd4ml.com/cookbook/pd4ml_table_of_contents.htm
Bookmarks: https://pd4ml.com/cookbook/pdf_bookmarks.htmin reply to: Generating PDFs with huge number of pages February 8, 2012 at 15:03#28868Hmm… if you can split the huge document to smaller portions, probably even a PD4ML.render( URL[], … ) or PD4ML.render( StringReader[], … ) method should help. It will render each of multiple HTMLs one-by-one, deallocating parsed structures after a portion is converted to PDF.
The following code should reduce RAM utilization if your document has bulky images.
Map m = new HashMap(); m.put(PD4Constants.PD4ML_CACHE_IMAGES_IN_TMP_DIR, "true"); pd4ml.setDynamicParams(m);
in reply to: Generating PDFs with huge number of pages February 8, 2012 at 14:45#28867There are relatively new PD4ML API methods merge(), intended for that. A PDF parser behind them has a limited functionality for the time being and cannot read some third-party PDF documents. But it reads/merges PDFs produced by PD4ML with no problems. So your idea should work.
in reply to: Generating PDFs with huge number of pages February 8, 2012 at 13:28#28865In general it is not possible to implement the “endless data” PDF output in HTML-to-PDF conversion scenarios.
PD4ML does all the layout of all the pages in memory, before it writes anything out. The reason is following: let’s say the source HTML layout is built as a single huge table. Any cell, let’s say, on page #350 whose width is a bit wider than previous cells of the same column requires re-layouting of previous 349 pages – as it impacts the entire table layout. If the 349 pages are already written to an output stream – the re-layouting is not possible anymore.
in reply to: I can´t apply css February 7, 2012 at 16:41#28806Glad it works for you now.
> But i don´t understand why with 8080 port it works in local…
I suspect network issues: probably the remote server blocks outgoing 8080 requests etc.
in reply to: Generating editable PDF forms February 6, 2012 at 17:24#28823Yes. Here is an example how to implement it in JSP scenario and to receive submitted data on the server side:
pd4ml-html-css-pdf-tips-tricks-f7/pdf-forms-t422.htmlIf you prefer to use PD4ML API, you need to trigger pd4ml.generatePdfForms() API call to enable HTML forms to PDF forms conversion.
in reply to: Absolute positioning within a padded parent February 6, 2012 at 17:19#28833Few minutes ago I replied to another your question and referenced the issue as well.
in reply to: Positioning – bottom ignored February 6, 2012 at 17:18#28690Viktor,
we’ve just added CSS “right” and “bottom” properties support, however I am afraid they are still not 100% identically interpreted by PD4ML, comparing to the major web browsers.
Could you please create and send us an HTML document, with your most wanted currently unsupported CSS features we could use for our internal tests?
(including html-css-to-pdf-rendering-issues-f3/absolute-positioning-within-a-padded-parent-t524.html test case)
in reply to: Css style inheritance February 6, 2012 at 17:08#28810We’ve just added the support. In few days it will be available for download/test.
in reply to: display current date every time the PDF is opened February 6, 2012 at 16:03#28792Most probably it will be available for download tomorrow or day after tomorrow.
If you want to test the actual development build right now – please send a request to support pd4ml com
in reply to: I can´t apply css February 6, 2012 at 16:00#28804Severe CSS error may fail the entire stylesheet applying. However, most probably, it is not your case, but I definitely makes sense to solve the issue.
> why it works in development and doesn´t work in production? i have same code…
Try to generate PDFs with bot versions and check in the PDF document properties PD4ML version numbers. Are they the same?
in reply to: pd4ml in a .jspx file used with success – up to a point …. February 6, 2012 at 15:55#28759> even though obviously these days a doc-type declaration is important.
Not in PD4ML scenario. By a PDF generation the browser expects to receive PDF bytes only. If the response is leaded by the XML declaration, first: the data is misleading, as it is not “xhtml-strict” in fact; second: the declaration bytes break all object offsets in the document. Acroread can recover it on-a-fly, but it is not safe and by slow systems a pop-up with “rebuilding xref table” (or something like that) may appear.
PD4ML itself simply ignores the declaration.
The enable=”false” issue is in our TODO list for the next beta.
-
AuthorPosts
