Forum Replies Created

Viewing 15 posts - 256 through 270 (of 1,410 total)
  • Author
    Posts
  • in reply to: Blank PDF
    #29790

    As a quick test try to add encoding=”default” to <pd4ml:transform> – it looks like your PDF is corrupted by a character encoding conversion applied to binary PDF data.

    in reply to: Blank PDF
    #29789

    Oh, my fault – I overlooked the PDF (it appeared in the mail message as a white rectangle on a white background). We’ll address the issue tomorrow.

    in reply to: Blank PDF
    #29787

    Yes, we received the files. Thank you!

    The sample HTML is quite simple and it should not cause any problems with conversion. We’ve been analyzing what could be an issue reason.

    BTW: you did not send a blank PDF sample for the doc. Could you please send it?

    Or under “blank PDF” you meant a blank browser frame (no PDF, no PDF viewer plugin)?

    in reply to: Blank PDF
    #29784

    OK, please do the following.

    Temporarily add enable=”false” attribute to <pd4ml:transform> and open the page in a web browser. It should return HTML. Save the HTML.

    Remove the attribute and generate a PDF (it is blank, according to your report). Save it.

    Please send the both docs to support pd4ml com

    in reply to: Blank PDF
    #29778

    If you use an old version of PD4ML there is a probability your ss_css2.jar includes some DOM classes which conflict with identical ones on the target platform.

    A good test would be to download one of the recent PD4ML versions (even evaluation) and to test if the issue reproducible.

    in reply to: Blank PDF
    #29776

    Any exception stacktraces in the server’s log?

    #28366

    It could be that your jpeg is using the CMYK color model rather than RGB.

    You can convert it on a fly (with JAI, for example) using custom resource loaders API.

    See pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    in reply to: style="whitespace: pre" is not working
    #29763

    Current versions of PD4ML provide a limited functionality for tag.

    You can achieve the needed layout if you move style=”whitespace: pre” from to hosting <td> tag.

    in reply to: Convert XML to PDF with SSL resources
    #29760

    Hmm… In the code PD4ML API assumes, that InputStream sourceStream returns HTML.

    There was no PD4ML version, which could implicitly transform XML to HTML. The transformation should be done in advance to PD4ML API call.

    If the comment means XHTML under “XML”, the conversion will work, but anyway any XSL references will be ignored.

    in reply to: Convert XML to PDF with SSL resources
    #29761

    From your problem description the usage scenario is not quite clear. Do you pass XML+XSL reference directly to PD4ML? In the case it should not work: PD4ML accepts as an input format HTML only (well, also SVG). Before a converting to PDF you need to transform the XML to HTML.

    For a case it cannot load images/CSS by HTTPS:

    PD4ML does not “officially” support HTTPS, however it implements very basic HTTPS resource loader (using the standard JDK classes). For example, WebSphere and Weblogic implement their own versions of HTTPS protocol, and the implementations are not derived from the standard API. That causes ClassCastExceptions on the platforms by attempts to load HTTPS resources.

    In order to workaround such issues PD4ML supports so-called custom resource loaders.

    pd4ml-html-css-pdf-tips-tricks-f7/a-definition-of-custom-resource-loaders-t40.html

    If it is your case, you may implement your own HTTPS loader, utilizes Weblogic SSL classes. I’ve attached our standard SSL loader implementation, which could give you some implementation ideas.

    in reply to: absolute uri: https://pd4ml.com/tlds/pd4ml/2.6
    #29019

    https://pd4ml.com/tlds/pd4ml/2.6 in the context is not an URL, but an unique identifier of a JSP tag library (pd4ml_tl.jar).

    If the JAR is correctly added to your web application it “registers” itself among application resources under the name.

    If your application tries to unsuccessfully connect the URL, that means there is a webapp misconfiguration.

    I would recommend to download the most recent version of PD4ML, install it and to make sure there is no old cached instances of pd4ml.jar in the working dir of the application etc.

    in reply to: JPG image type is unknown/unsupported
    #29757

    The new version is currently under QA. It is to be released tomorrow or day after tomorrow according to our plans.

    in reply to: Watermark
    #29750

    Hi!

    First I would recommend to enable debug output and to inspect messages if it successfully to loaded the watermark image.

    in reply to: Optimum HTML width for A4 in pd4ml
    #29758

    An “optimum” criteria differs depending on a use case. If you have an HTML document with a hardcoded table width=1000, by any htmlWidth less than 1000 the resulting document layout will be cut right side.

    Let’s call the desired optimum is when 1pt defined in HTML corresponds to 1pt in PDF and in printed output. It can be useful if you need a correct font size (given in pt) conversion.

    pageFormat is measured in physical units (pt)
    pageInsets are also in pt
    htmlWidth is in screen pixels
    px/pt = 1.35
    A4 width is 595pt

    (pageFormat.width – pageInsets.left – pageInsets.right) / htmlWidth = 1/1.35
    htmlWidth = 1.35 * (pageFormat.width – pageInsets.left – pageInsets.right)
    for A4:
    htmlWidth = 1.35 * (595 – pageInsets.left – pageInsets.right)

    If the desired optimum is 1px defined in HTML corresponds to 1pt in PDF and in printed output.

    htmlWidth = 595 – pageInsets.left – pageInsets.right

    For landscape A4 orientation replace 595 with 842

    in reply to: JPG image type is unknown/unsupported
    #29755

    We’ve implemented 32-bit BMP support in the current development branch. The feature will be available with the forthcoming release.

Viewing 15 posts - 256 through 270 (of 1,410 total)