Forum Replies Created
-
AuthorPosts
-
in reply to: Header Footer Issues July 20, 2010 at 11:52#27953
Yes. I would recommend to use <pd4ml:page.header> for that:
<table> <tr> <td> </td> </tr> </table>
, you mentioned, is a custom JSP tag, mapped to PD4ML API – so it works only in JSP container. More info about PD4ML headers/footers: html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html
in reply to: Connection timed out … July 20, 2010 at 09:57#28080Oficially PD4ML does not support HTTPS, however on practice it tries to load HTTPS resources with Java’s standard SSL classes.
WebSphere and Weblogic, for example, and may be some others implement their own SSL libraries, not derived from Java’s standard one. As a result it causes ClassCastException. As I see, it is not your case, but there may be other SSL protocol related issues, specific for your environment.
The best workaround for the HTTPS issue is not to use HTTPS for CSS or image references. It is expensive from the performance perspective and causes undesired network transactions. A better approach is to reference the resources with relative links.
If your source HTML documents are read-only and you are not allowed to change HTTPS URLs there, there is also a solution with custom resource loaders. You may implement your own one and to use any SSL library you like:
pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html
Also https://pd4ml.com/examples.zip include source codes of SSL servlet, where you could borrow some ideas from (for example how to suppress a certificate check).
in reply to: How to generate pdf for constrained urls July 19, 2010 at 19:37#27599It depends on the server side session mechanism of you web application. You need to propagate the session ID correctly with the URL passed to PD4ML.
For the regular J2EE application a solution is to add the jsessionid parameter to URLs:
http://your.server.net/webapp/sourcepage.jsp;jsessionid=8764587625?param1=value1¶m2=value2
in reply to: Broken rendering under Linux, working properly under Windows July 19, 2010 at 10:11#28085A HTML sample would help a lot to analyze the problem reasons.
Could you please attach it to a post or send it directly to support pd4ml com
in reply to: Double byte support July 16, 2010 at 21:40#27890Obviously in pd4fonts.properties there is a line
code2000=font.ttf
Just substitute it with
code2000=anotherfont.ttf
and make anotherfont.ttf exists and readable
in reply to: Rendering images July 16, 2010 at 21:39#27360If an
tag has no height/width attributes, PD4ML uses the original pixel dimensions of the image.
If the image does not fit PDF page width, you need to adjust HTML-to-PDF scaling factor.
HTML->PDF conversion is performed in two steps: HTML rendering – it uses htmlWidth parameter (aka screenWidth in PD4ML JSP taglib) as virtual web browser frame width, and PDF output – it maps the htmlWidth to the horizontal width of choosen paper format.
If a particular image does not fit horizontally PDF page, that means, the image is wider than htmlWidth.
In the case you have two options:
- increase htmlWidth value (default is 640)
- scale down the image with height and width attributes of
tag
in reply to: images with height in percentage July 16, 2010 at 21:37#27983Adrian,
PD4ML does not support
as, in most of the situations, there is no base to compute percentual heights, but width=”100%” should work.
> The second problem I have is that I have a html very large horizontally.
> Is there a way to stretch the html to fit a pdf page?Try to increase htmlWidth conversion parameter to exceed the table width.
in reply to: Connection timed out … July 15, 2010 at 10:42#28075If debug mode is switched on, it should at least output its version number. If there is no such output, please make sure, that your Java code with pd4ml.enableDebugInfo() call is not ignored because of cached older stuff.
in reply to: Connection timed out … July 15, 2010 at 10:31#28073It should write debug info to the same log, where you found the exceptions.
Which version of PD4ML do you use?in reply to: Does page header(footer) support left or right? July 15, 2010 at 08:47#28109No, such features are not supported.
in reply to: PD4ML multicolumn functionality does not support Arabic RTL July 14, 2010 at 16:17#28091Please give a try to a new version we’ve just published to the download area.
in reply to: Keeping header and tables together [paging] July 14, 2010 at 16:15#28105Another option is to place a conditional page break before
<h2>For example
<pd4ml:page.break ifSpaceBelowlessThan="500"/>in reply to: Does page header(footer) support left or right? July 14, 2010 at 16:11#28107You may achieve that either with a footer definition
html-pdf-faq-f1/pdf-page-headers-footers-definition-options-t41.html
or with a footnote. See:
<pd4ml:footnone>tag.in reply to: org/w3c/dom/* classes in ss_css2.jar July 13, 2010 at 12:14#280990.9.5 currently is not compatible with PD4ML. The issue is in our TO DO list to fix.
in reply to: Open an explorer popup with save/open July 13, 2010 at 11:02#28103If you use PD4ML JSP taglib, just define inline=”false” and fileName=”file.pdf” attributes of
<pd4ml:transform>In servlet/PHP/etc scenarios, define
Content-disposition: attachment; filename=file.pdf
HTTP response header.
-
AuthorPosts
