Forum Replies Created

Viewing 15 posts - 1,111 through 1,125 (of 1,410 total)
  • Author
    Posts
  • in reply to: Header Footer Issues
    #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 …
    #28080

    Oficially 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
    #27599

    It 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&param2=value2

    #28085

    A 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
    #27890

    Obviously 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
    #27360

    If an Image from the forum topic: Rendering images 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 Image from the forum topic: Rendering images tag
    in reply to: images with height in percentage
    #27983

    Adrian,

    PD4ML does not support Image from the forum topic: images with height in percentage 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 …
    #28075

    If 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 …
    #28073

    It 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?
    #28109

    No, such features are not supported.

    #28091

    Please give a try to a new version we’ve just published to the download area.

    in reply to: Keeping header and tables together [paging]
    #28105

    Another 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?
    #28107

    You 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
    #28099

    0.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
    #28103

    If 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.

Viewing 15 posts - 1,111 through 1,125 (of 1,410 total)