Forum Replies Created

Viewing 15 posts - 211 through 225 (of 1,410 total)
  • Author
    Posts
  • in reply to: Unable to render Chinese / Russian Characters
    #29580

    The junk characters look like wrongly interpreted double byte representations of UNICODE/UTF-8 characters. Try to add tag with a correct character encoding directive to your HTML or use PD4ML API’s render() call with an explicitly given ‘encoding’ parameter.

    in reply to: Html to pdf conversion removes the xml tags in the html div
    #29562

    Hmm… So it seems it applies an entity resolving twice. We’ll check what is wrong with it.

    A quick-and-dirty solution would be to use &lt; instead of <

    in reply to: Html to pdf conversion removes the xml tags in the html div
    #29560

    If you want XML markup to appear as the textarea content, you should replace all occurrences of ‘<' with <

    in reply to: pd4ml:include not working as an alternative of $[page], $[to
    #29831

    It is planned to 23rd of October. May take few days more, but a release will happen not later than Oct. 30.

    in reply to: The hiegh of the footer
    #29587

    By default header and footer space is limited by 1/3 of page height.

    The limitation can be omitted with

    Map m = new HashMap();
    m.put(PD4Constants.PD4ML_HEADER_HEIGHT_LIMIT, "false");
    pd4ml.setDynamicParams(m);

    in reply to: Issue with Blank pages
    #29459

    We’ll try to experimentally exclude a bottom margin (as well as a bottom padding if an element border is not defined) from element height calculations in the page break logic. In theory it should solve the issue you are faced with.

    The feature will take 2-3 days to implement/test.

    in reply to: URL Encoding Issue
    #29505

    Thank you for the confirming! Glad the issue is solved on your side.

    in reply to: Is it possible to print a dynamic MAP?
    #29530

    Just replied in the new topic.

    in reply to: No image on PDF document
    #29655

    A possible approach:

    1. define your own “image URI format”. For example

    <img alt="Image from the forum topic: No image on PDF document" src="myimage:param1=value1;param2=value2" height="320" width="398">

    The image URI format should include all params, you mentioned, required by the image generating script.

    2. implement a custom resource loader, which “understands” and can process the introduced image URI format (parses the parameters, requests the script to generate an image and returns the image back).

    See https://pd4ml.com/cookbook/custom_rc_loaders.htm
    “myimage:param1=value1;param2=value2” will be passed to the loader as “resource” parameter.

    in reply to: Signature
    #29653

    For the time PD4ML does not support digital signing out-of-the-box. However it implements a possibility to insert a placeholder for particular types of digital signature (a special type of PDF form input fields to be used by third-party signing tools).

    Contact support pd4ml com to discuss your digital signing requirements in details.

    in reply to: Issue with Blank pages
    #29462

    Page width and height (paper format) is given as a conversion parameter. By default it is A4.

    HTML is rendered using htmlWidth parameter (an equivalent of web browser frame width).

    By a conversion, htmlWidth is mapped to given paper width (minus horizontal margins).

    A height of page (from HTML perspective) can be computed from the above info.

    See https://pd4ml.com/cookbook/pdf_page_formatting.htm for more details.

    But I would think you are trying to go a wrong way. Probably it would make more sense to enclose logical parts of document to <div style="bage-break-inside: avoid"> ... </div> sections and let PD4ML break the content to pages.

    in reply to: Is it possible to print a dynamic MAP?
    #29532

    Unfortunately for the time being PD4ML does not support image maps and canvas.

    We can add image maps support (by request), but with canvas it is not that easy. It would require to implement DOM-compatible document representation, add JavaScript support etc – in other words a total refactoring of the library and adding new complexity levels.

    “pd4ml.enable.canvas.interpreter” allows to connect an external functionally limited JavaScript/canvas rendering engine. The feature is untrivial to configure/utilize and because of different reasons we do not develop it further.

    PD4ML Web is based on an alternative HTML rendering engine, it supports JavaScript and canvas, but has its own drawback: it does not output interactive (hyperlinked) PDFs.

    in reply to: Issue with Blank pages
    #29468

    In your case a possible reason of an appearance of a blank page, is a page content exceeds given page height and followed by a page break directive (most probably “page-break-before: always” CSS property; possibly <pd4ml:page.break> tag).

    So alternatively you may suppress/override page-break-before style (with pd4ml.addStyle() API call, for example)

    But if the issue is the same with a variety of your documents (page content does not fit only few pixels), obviously the page layout has been developed for a smaller content scale. You can scale down the content by an increasing of htmlWidth parameter.

    See https://pd4ml.com/cookbook/pdf_page_formatting.htm

    in reply to: Issue with Blank pages
    #29466

    Try to increase htmlWidth conversion parameters in small amounts, until a page content fits a page space.

    in reply to: Issue with Blank pages
    #29470

    PD4ML automatically removes blank trailing pages only. In your case it would make sense to determine the problem reason.

    First try to temporarily define DIV and TABLE borders to see if invisible parts of them (content padding etc) are wrapped to next pages.

    DIV, TABLE { border: 1 solid tomato }

Viewing 15 posts - 211 through 225 (of 1,410 total)