Forum Replies Created
-
AuthorPosts
-
in reply to: PDF from multiple urls November 15, 2010 at 03:01#27786
Unfortunately the API does not allow to define individual settings for each document.
The only possible workaround is to create PDFs one-by-one using PD4ML and to merge them into a single doc with free iText library (http://itextpdf.com/)
in reply to: Content inside table is not justified November 15, 2010 at 02:57#28174Could you please publish an HTML sample of such document or send it to support pd4ml com
in reply to: [.NET] HTML rendering problem November 15, 2010 at 02:54#28145Just use the standard PayPal or ShareIT order link. After that please contact support pd4ml com and we’ll send you the most recent version.
in reply to: how to merge array of pdf November 15, 2010 at 02:44#28291For the time being it is not possible.
The only workaround is to merge HTMLs and to pass the resulting document to PD4ML as a single body.
in reply to: CSS text-align Property Issuse November 14, 2010 at 22:36#278711. The feature is currently not supported for PDF form elements. We can add it in the nearest future.
2. We cannot reproduce the issue – with our test documents it always works correctly. Please send your HTML sample to PD4ML support.in reply to: How to create bookmarks in PDF? November 14, 2010 at 11:01#27664The API call is intended for that:
https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#generateOutlines(boolean)
in reply to: how can i give powered by options November 13, 2010 at 23:45#28032With PD4ML Pro you may do that by inline footer definition:
<b>All rights reserved. Powered by PD4ML</b>
With PD4ML Std it could be done via API call. See more about footers/header:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html
in reply to: Url graph not displayed November 13, 2010 at 01:29#27828I tried a variety of JDK versions, but was not able to provocate an with any of them URL-length problem.
Now I suspect encoded URL parts wrolly interpreted. For example “%25” is auto-replaced with 0x25 character there. Could it be a problem?
Try a long chart path without such %NN patterns. Does it work?
in reply to: How to display Greek letters θ, ß in generated PDF for Java November 9, 2010 at 15:56#28295You need to utilize TTF Embedding feature of PD4ML Pro
in reply to: HTML-styled String to pdf using streams November 9, 2010 at 11:18#28294Among PD4ML examples https://pd4ml.com/examples.zip there is PD4MLBySslServlet.java class, which ilustrates how to use PD4ML in web scenarios (just ignore SSL stuff there).
At first glance your Java code seems to be correct. So I would suspect source HTML as a reason of blank PDFs. Do you really have opening tag at the end of your HTML code? Please try to remove it – it may confuse the HTML parser.
in reply to: Optimalization of PDF for printing November 9, 2010 at 01:40#28252Unfortunately PDF standard provides not much control to optimize device-specific print jobs.
For example: if your PDF document has bulky images it depends on the printer supported features and the printer driver whether the image will be sent to print as an unpacked array of pixels or in its original compact format (JPEG, PNG).
in reply to: Adobe Reader Version Problem November 5, 2010 at 06:40#28067PDF format versions are backward compatible. PD4ML outputs PDFs compatible with Acroread 5 and newer. (Even if you use Acroread 4, it will ignore all features it does not “understand”)
Acroread 9.1 should introduce no problems at all, so no PD4ML update is necessary.
in reply to: fix_base_path: multiple patterns November 2, 2010 at 15:24#28292Try do define multiple nested tags with needed patterns.
<pd4ml:fix_base_path pattern="/css/" ... > <pd4ml:fix_base_path pattern="/img/" ... > <pd4ml:fix_base_path pattern="/js/" ... > Content to apply the tags to </pd4ml:fix_base_path> </pd4ml:fix_base_path> </pd4ml:fix_base_path>
On the other hand recent versions of PD4ML are able to resolve absolute web paths via ServletContext. I would recommend to add debug=”true” to
<pd4ml:transform>and ispect STDOUT what it tries to load and whether the URLs are correct.in reply to: Content not flowing properly around images October 29, 2010 at 17:38#28290For the time being there is no workaround.
HTML-to-PDF conversion process consists of 2 phases: Initially PD4ML renders HTML document layout for a “screen device”, whose height is unlimited. At this point page breaks are not taken into account. After that the rendered content is “printed” to PDF output device (or Image device, or RTF device etc) and depending on a particular output media nature and dimensions, page breaks (or “page-break-inside: avoid” directives) applied.
What you actually need is to reflow the text depending on an actual image position, and the actual image position depends on a page break position. So during the phase 1 we need a position info, which will be known only during the phase 2. That is a very big challenge to the current PD4ML architecture and we are even not ready to estimate needed efforts yet.
in reply to: Content not flowing properly around images October 29, 2010 at 10:31#28288Steph,
it is an implicit page break issue. We’ve been checking if it is possible to implement a fix. (it is quite tricky: PD4ML prints floats after the main content, so a page break “signal” comes from a float too late – when a portion of a text, supposed to go to the next page, is already printed on the current one).
As a workaround I would recommend to add a conditional page break tag between
<div>s:
... </div> </div> <pd4ml:page.break ifSpaceBelowLessThan=300> <div class="Entry" style="..."> <img alt="Image from the forum topic: Content not flowing properly around images" class="Image" ...
where “300” more-less matches the image height.
-
AuthorPosts
