Forum Replies Created
-
AuthorPosts
-
in reply to: Page-break cutting accent when page breaks November 8, 2011 at 23:41#28700
I have the same problem. You Could help?
in reply to: Troubleshooting November 8, 2011 at 23:44#26626Have you way to use getResourceAsBytes to load a image to set watermark without a
tag?
in reply to: Page-break cutting accent when page breaks November 8, 2011 at 23:50in reply to: HTML/CSS rendering issues November 11, 2011 at 06:52#26625hi
i am trying to generate pdf for my html page while generating it wil gives a warning message that is
Warning: Invalid syntax in CSS declaration. “background-color:” .
How can i solve this issue.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: 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: .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 14, 2011 at 14:53#28703Ok.
I sended evidences by email support@pd4ml.com, attenting your request.
Thank you.@PD4ML wrote:
Please 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: 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: 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: Page-break cutting accent when page breaks November 15, 2011 at 13:16#28704We 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: CSS and PHP to PDF November 15, 2011 at 15:02#28374try to use full URL for your css
in reply to: Progress Monitor/Feedback mechanism during PDF generation November 15, 2011 at 22:25#28683I noticed the new 3.8.0 version allows for progress monitoring. Is there a simple example somewhere of how to use the API for this feature?
in reply to: Troubleshooting November 16, 2011 at 11:20#26628Hi,
our server has ISO-8859-15 encoding (-Dfile.encoding=ISO-8859-15) but PD4ML only supports ISO-8859-1 so it is generating empty PDFs.Is there any solution?
Thank you.
(P.D.: I’m the same person who posted this other topic and contacted with Igor Repinetski via e-mail some months ago. This time is not the same project/server.)
in reply to: Trouble with server encoding (ISO-8859-15) November 16, 2011 at 11:31#28716The server log says:
new parse attempt with: ISO8859_1 -
AuthorPosts
