Forum Replies Created
-
AuthorPosts
-
in reply to: Page-break cutting accent when page breaks November 15, 2011 at 13:16#28704
We reproduced the issue – it seems to be a bug with header height computations.
We plan to find a solution till the next beta release.As a workaround I would recommend to use inline header definitions with
<pd4ml:page.header>; however there are some scenarios, where it is quite tricky to use the tag – for example if your source documents are read-only and cannot be modified.in reply to: Reading Watermark image with getResourceAsBytes November 15, 2011 at 10:26#28715I am not sure if I understand you correctly.
Normally a watermark is defined with API calls like the following:
PD4PageMark footer = new PD4PageMark(); footer.setWatermark("http://server/image.jpg", new Rectangle(10,10,200,200), 30); pd4ml.setPageFooter(footer);
(It is a bit confusing as it uses footer or header API and actually defines no footer or header)So as you see there is no
tag, you just specify image URL.
The URL may also be of the following protocols “file:” – to read local image file, “java:” – to read a watermark image from JAR and “data:image/png;base64,” – to pass base64 encoded images (png, jpeg or gif).
in reply to: Different Header / Footer based on page number November 15, 2011 at 09:57#28711You can find general info regarding PD4ML headers/footers by the link:
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.htmlThe third option allows you to define with scope attribute where a particular header/footer should appear. You may define multiple
<pd4ml:page.header>tags with different scopes.If you prefer to define headers/footers via API, you need to override corresponding methods of PD4PageMark. For example:
PD4PageMark footer = new PD4PageMark() { public String getHtmlTemplate(int pageNumber) { if ( pageNumber % 2 == 0 ) { return "<html><body>some left aligned stuff..."; } else { return "<html><body>some right aligned stuff..."; } } }; pd4ml.setPageFooter(footer);The above example defines page-specific HTML footer. Such type of footers is not supported by PD4ML Std. For the Std verison you may override:
PD4PageMark.getPageNumberTemplate(int pageNr); PD4PageMark.getPageNumberAlignment(int pageNr); PD4PageMark.getTitleTemplate(int pageNr);
etcin reply to: .Net compared to Java November 11, 2011 at 15:24#28710We never noticed any significant performance difference between Java and .NET PD4ML implementations. Most probably your HTML documents have some structures, whose rendering has been optimized in the recent Java versions: as you may see the actual .NET version is quite older than the most recent Java version.
Currently we’ve been working hard on the version synchronization and we plan to release a .NET port of v380 in about one week. Hopefully it will resolve the issue you faced with.
in reply to: Page-break cutting accent when page breaks November 11, 2011 at 15:11#28702Please attach an HTML sample and its PDF result – it should help us to reproduce the issue. Or send the files to support pd4ml com
Thank you.
in reply to: background-color not supported in pdf generation November 11, 2011 at 14:46#28714Obviously the property has an invalid or no value. Check the style definition.
in reply to: background-position October 24, 2011 at 16:48#28580PD4ML supports almost all background properties, except positioning by right and bottom edges.
in reply to: Dynamically Generated HTML not shown on converted PDF October 24, 2011 at 16:42#28707PD4ML is based on our proprietary 100% Java HTML rendering engine, which does not support JavaScript, unfortunately.
in reply to: How to display Greek letters θ, ß in generated PDF for Java October 24, 2011 at 16:41#28297Please correct if I am wrong:
Your document has a table, which at some condition can exceed the available page space, so some part of the table wraps to the next page.
Each table part needs to have a header and footer rows.
If I understand you correctly, there is only a partial solution for the issue.
pd4ml.enableSmartTableBreaks(true) forces PD4ML to replicate table headers to each page the table needs/allocates. “Table header” is a row or many rows consist of
<th>tags only.Unfortunately there is no way to to the trick with a kind of table footer.
in reply to: HTML comments inside TD October 24, 2011 at 16:29#28708I’ve just tested the code with the most recent version of PD4ML and was not able to reproduce the issue.
Could you please publish a PDF sample (which should help us to determine conversion parameters and PD4ML version you used) and also give a try to v380b1?
in reply to: Caused by: java.lang.NoClassDefFoundError: Could not initial October 24, 2011 at 15:52#28709org.zefer.pd4ml.PD4ML is the main class of PD4ML. The message tells, that the class is missing or not in the classpath. I have no idea what could happen on your side, but please make sure pd4ml.jar, ss_css2.jar and optionally pd4ml_tl.jar still exist on the server and listed in the classpath or located in WEB-INF/lib directory.
in reply to: pd4ml:header reserves space also on skipped pages October 17, 2011 at 14:47#28706First please make sure you use PD4ML Pro. Std version ignores the header tag.
is mapped to PD4ML header definition API. It preallocates header space even for skipped pages. An alternative is to use newer tag and control the header appearance with scope attribute. In the case header space is allocated only where a header is to be printed.
in reply to: Positioning – bottom ignored October 12, 2011 at 15:36#28687Currently PD4ML supports only “left” and “top” CSS properties. See: https://pd4ml.com/css.htm
We could add the missing properties support in one of the forthcoming releases.
in reply to: Problem with image cache October 12, 2011 at 14:30#28676It looks like there is an implicit caching on JDK level. We’ll investigate if it is possible at all.
in reply to: Arabic Representation October 12, 2011 at 14:24#28699Try to define dir=”rtl” in tag.
And also make sure you use a relatively recent version of PD4ML Pro and TTF Embedding feature is enabled.
-
AuthorPosts
