Forum Replies Created

Viewing 15 posts - 271 through 285 (of 1,410 total)
  • Author
    Posts
  • in reply to: JPG image type is unknown/unsupported
    #29754

    Despite the file is named .JPG, it is in fact a BMP with 32-bit color. Adobe Photoshop cannot open it until the file is renamed to .BMP

    For the time being PD4ML supports 1-, 8- and 24-bit BMPs. We’ll check what could be done with 32 bits.

    #29738

    We’ve been working on the issue. If everything ok, the fix will be available with the forthcoming maintenance release in few days.

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

    the jpeg is missing – could you please publish it?

    #29678

    Could you please publish a PDF sample, you unsuccessfully tried to merge with a dynamically generated PDF?

    #29630

    Please publish a sample PDF, generated with your actual PD4ML version, which illustrates the problem.

    #29736

    For the given document type a possible solution is to define an extra style to shrink a table and to ensure, it makes no undesired line-wraps:

    table { width: 200 }
    td { white-space: nowrap; }

    The style can be passed via pd4ml.addStyle(css, true) API call.

    See https://pd4ml.com/api/org/zefer/pd4ml/PD4ML.html#addStyle(java.lang.String,%20boolean)

    in reply to: closed border line in each page
    #29746

    Now I see.

    Well, you cannot define the border line with HTML/CSS. But it is possible:

    1. to define a page background image with a painted border line and to apply the image to all pages.

    PD4PageMark footer = new PD4PageMark();
    footer.setPageBackgroundImageUrl("file:./frame.jpeg");
    pd4ml.setPageFooter(footer);

    2. to create a static PDF page with a border line. It can be done from an HTML like the following:

    <body style="margin: 0">
    <div style="border: 1 solid black; width: 100%; height: 800"> </div>
    </body>

    (height value is to be adjusted there)

    After that you could combine(underlay) the static PDF with your dynamically created PDF document.

    https://pd4ml.com/cookbook/pdf-overlay-underlay.htm

    in reply to: Turn off warnings
    #29742

    It will be clear with the release date in about 2 weeks.

    If it is critical, we could build for you an “unofficial” ss_css2.jar patch with the warning/error messages cleaned up.

    in reply to: Inconsistent character font family on list
    #29685

    Sorry for the silence.

    The issue has been already fixed in the dev build. The update will be available with the forthcoming maintenance release in ~2 weeks.

    in reply to: Turn off warnings
    #29740

    Unfortunately the warning is not switchable. It comes from CSS Parser (ss_css2.jar) – the only third-party library PD4ML relies on.

    From time to time we patch it, but currently we work on our own CSS processing solution and further ss-css2.jar patches are not planned.

    in reply to: closed border line in each page
    #29744

    You may achieve that with a footer definition, like

    <pd4ml:page.footer height="8">
    <div style="width: 100%; height: 4; border-top: 1 solid tomato; border-bottom: 1 solid tomato;"></div>
    </pd4ml:page.footer>

    Use the above code or modify already existent footer correspondingly.

    Also place <pd4ml:page.footer> tag just after <body> tag opens:

    ...
    </head>
    <body>
    <pd4ml:page.footer>
    ...

    in reply to: Miniature pdf is generated
    #29748

    On my workstation the document is converted as expected. See attached.

    Obviously a reason of conversion problem is in conversion parameters. If a content appears in the resulting PDF document tiny, I would suspect htmlWidth API parameter value is set too big.

    #29628

    v396 should do the trick (when “pd4ml.document.id” property is defined).

    in reply to: pd4ml:page.footer Inline tag not rendering
    #28204

    We plan to refresh our Coldfusion instructions in the nearest future.

    It is strange, that PD4ML works in general in your case, but headers/footers fail. Try to temporarily put <pd4ml-page-break> just after <pd4ml-page-header>

    Does a header appear on the second PDF page?

    in reply to: Arabic Paragraphs not rendering correctly in RTF output
    #29735

    Hmm… We’ll address the issue this week.

    The issue may come from a difference in a preparing of text to output to PDF and to RTF. By RTF the Arabic or mixed script should be printed “as is”, letting MS Word to ligaturise and to render it correctly. For PDF output the text should be pre-processed to appear as a correct sequence of glyphs.

    I suspect in some situations it uses the PDF preprocessing for RTF output, which is wrong. But it is only a guess, we need to analyze that in details.

Viewing 15 posts - 271 through 285 (of 1,410 total)