Forum Replies Created

Viewing 15 posts - 361 through 375 (of 1,410 total)
  • Author
    Posts
  • #29504

    Just released v390 addresses the issue. Do not forget to copy an updated ss_css2.jar from the distribution package to your application resources.

    in reply to: "Print Ready" PDFs?
    #29544

    Right now there is no way to generate PDFs with CMYK colorspace.

    You could request the feature implementation on an (affordable) paid basis.

    in reply to: .TIFF images not appearing in PDF
    #29547

    By default PD4ML supports only Fax-specific TIFF image sub-formats. Obviously in your case the TIFF format is not among the supported.

    A workaround would be to define a so-called custom resource loader and let it re-format a TIFFs to anything compatible.

    See:
    https://pd4ml.com/cookbook/custom_rc_loaders.htm
    and an attachment.

    in reply to: Is <em> tag supported?
    #29424

    tag is supported – it is just a synonym to in a PDF conversion context.

    in reply to: TTF embedding
    #27317

    By default PD4ML converts to PDF characters, belong to Latin-1 charset only using built-in Adobe fonts (Helvetica, Times New Roman and Courier New). In order to output national or special characters you would need to configure and utilize TTF embedding feature. See:

    https://pd4ml.com/reference.htm#7.1
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html
    https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm

    in reply to: Is demo jar PD4ML library or in PD4Ml library PRO?
    #29548

    The code works with both Std and Pro versions.

    The Pro version would also allow you to embed TTF fonts and to display with them non-Latin and special characters.

    in reply to: need servlet code for converting html string to pdf
    #29039

    The code works with both Std and Pro versions.

    The Pro version would also allow you to embed TTF fonts and to display with them non-Latin and special characters.

    in reply to: Javascript is not getting executed with PD4ML
    #29546

    PD4ML does not support Javascript and we have no plans to support it. The topic with a tricky workaround is discussed by the link:
    html-css-to-pdf-rendering-issues-f3/is-javascript-supported-t216.html

    Alternatively you may give a try to PD4ML Web wrapper to a PhantomJS HTML->PDF converter module. https://pd4ml.com/pd4ml_web.htm Its functionality is planned to be included to PD4ML v4 as an option.

    in reply to: &nbsp; getting displayed as ?
    #29542

    Try do download v385fx8 again and reinstall. There were some distribution package build issues.

    in reply to: Problem with CSS before after selectors
    #29541

    By the link you may find a list of supported CSS selectors:
    https://pd4ml.com/cookbook/pd4ml_proprietary_css_features.htm

    I am afraid “before” and “after” pseudo-elements in selectors are not supported

    in reply to: Issue with shadow style to <img>
    #29540

    Unfortunately for the time being the style is not supported by PD4ML.

    Try PD4ML Web, based on WebKit rendering engine – there is a chance it works with it.

    in reply to: Different footer on the last page
    #29492

    If the total number of PDF pages is not known, it is a bit tricky.

    tag supports scope attribute to define a page scope, where particular footer definition is supposed to go. For example scope=”2+,skiplast” There is a reason, why “skiplast” option is supported, but “lastpage” option is not.

    See html-pdf-faq-f1/scope-lastpage-t356.html for brief explanation and a workaround.

    in reply to: Problem with PDF version1.3
    #29538

    In fact even PDF 1.3 should be ok for PD4ML. The exception is only tells, that the version number format is invalid. (The test is performed mostly to make sure a parsed file is PDF)

    String msg = "Invalid PDF version prefix: ";
    ...
    int index = -1;
    if (!comment.startsWith("PDF-") || (index = comment.indexOf('.')) < 0) {
    throw new ParseException( msg + comment );
    }
    try {
    versionMajor = Integer.parseInt(comment.substring(4, index));
    versionMinor = Integer.parseInt(comment.substring(index + 1));
    } catch (NumberFormatException exception) {
    throw  new ParseException( msg + comment );
    }

    I see, visually “PDF-1.3” is correct, and should pass the above test. So I would suspect there are trailing invisible chars etc.

    A PDF sample would help to analyze the issue.

    #29539

    Please contact support pd4ml com and provide all relevant data: Java code and source HTML snippets, resulting PDF etc.

    in reply to: Disable Attachments
    #29535

    From PD4ML documentation:

    /**
    * "pd4ml.disable.external.attachments"
    * if "true", it does not load attachments (<pd4ml:attachment>) from local system and from URL. It does not impact inline-defined attachments.
    * @see PD4ML#setDynamicParams(java.util.Map)
    */
    public static final String PD4ML_DISABLE_EXTERNAL_ATTACHMENTS = "pd4ml.disable.external.attachments";

    Attachments come from Lotus Notes/Domino XML (DXL) are inline, that is the reason the setting does not disable them by default.

    There are workarounds:

    1.

    PdfAgentR7.java sample code has the following section:

    if ( dontPassAttachmentsToXalan ) {
    xml = extractAttachments(xml);
    }

    extractAttachments() method extracts inline attachments from DXL, stores them as temporal files and inserts references to the temp files instead on the attachment bodies. In the case PD4ML_DISABLE_EXTERNAL_ATTACHMENTS flag works as expected.

    2. Suppress attachments on CSS level:

    pd4ml.addStyle("pd4ml-attachment {display: none}", true);

    In the case an invoking of extractAttachments() also makes sense, as it prevents bulky base64-encoded attachment data from being passed to XALAN.

Viewing 15 posts - 361 through 375 (of 1,410 total)