Forum Replies Created

Viewing 15 posts - 4,051 through 4,065 (of 4,250 total)
  • Author
    Posts
  • in reply to: Technical questions / Troubleshooting
    #36349

    Hello,

    How to add table of contents in a specific page in the generated pdf. I also need to add page numbers for TOC. The pages will be dynamic for e.g a particular section in the pdf can be in page 4 or it could be in page 40.

    Is there a way to achieve that using pd4ml?

    in reply to: Table of content and associated pages
    #36351

    Hi! Table of content can be generated with <pd4ml:toc> proprietary tag. You can place the tag anywhere in the source HTML, but prferrable not to a table cell.
    See: https://pd4ml.com/support-topics/usage-examples/#add-toc

    in reply to: Technical questions / Troubleshooting
    #36352

    Hello Could you please let me know where can i find a complete list of pd4ml tags and its description.

    Thanks
    Paulam

    in reply to: Technical questions / Troubleshooting
    #36353

    Hi I have a requirement to show some particular pages in a pdf in landscape and then again change it to portrait . This process can continue multiple times.

    So far i have tried with <pd4ml:page.break pageFormat=”rotate”/> multiple places in the html template but what i have observed is once the page is rotated from portrait to landscape the rest of the pages appear in landscape only . It does not switches back to portrait even after adding <pd4ml:page.break pageFormat=”rotate”/>

    Any help with this will be appreciated.

    Thanks
    Paulam

    #36354

    Hi Paulam,

    try <pd4ml:page.break pageFormat=”reset”/>

    in reply to: Problems Rendering HTML Symbols
    #36365

    In order to render the glyphs you need to make sure the glyphs are present in used TTF font.

    As it follows from your Java code snippet, you did not enable TTF embedding at all, so it uses built-in core fonts, support Latin-1 charset only and do not implement the glyphs.

    The attached PDF is generated with the TTF embedding enabled. PD4ML took the glyphs from MS Gothic TTF font

    See https://pd4ml.com/pdf-fonts/ for TTF embedding hints

    Attachments:
    You must be logged in to view attached files.
    in reply to: Temporary cache files not properly cleaned
    #36373

    We are currently using the last release (v4.0.15fx2). Could you please provide us some visibility on the next release date ? Best regards

    in reply to: Temporary cache files not properly cleaned
    #36392

    v4.0.16, which fixes this issue, is scheduled for release on Monday, May 22, 2023.

    in reply to: Technical questions / Troubleshooting
    #36402

    Hi there,

    I am rotating three consecutive pages from portrait to landscape mode and it works fine, all three pages are in landscape mode.
    After my third landscape mode subsequent pages are rotated back to portrait mode, so far so good.

    However, I don’t seem to be able to stretch table width in landscape mode pages to 100% for some reason.
    First page contains ‘rotate’ tag and ‘reset’tag is at the bottom of the third page.

    I have tried adding ‘rotate’ and ‘reset’ tags to individual pages but it made no difference.

    Is there a way around this, I am hoping somebody came across this before.

    Best regards
    -Mario

    in reply to: Unable to stretch table width to 100% in landscape mode
    #36409

    Did you enable pd4ml.adjustHtmlWidth() mode? In this case, it scales the content down to fit the target page (in its initial portrait format). So after turning the page into landscape, its “extended” right side will always be blank.

    If you enabled pd4ml.adjustHtmlWidth() mode, first try to switch it off.

    The samples from https://old.pd4ml.com/cookbook/pdf_dynamic_format_change.htm seem to implement exactly what you needed

    in reply to: Technical questions / Troubleshooting
    #36470

    Hello,
    although at least display: contents seems to be listed among the known display values, my following code fails to @propagate@ the elements upwards into the Flex container and have them join the flex party there.

    Additionally, specifying order properties on the flex children doesn’t affect the order in which the elements are being rendered.

    Is/could there be support for these properties?

    The code:
    <style type="text/css"> .mainwrapper { display: flex; flex-direction: row; } .innerwrapper { display: contents; } </style> <div class="mainwrapper"> <div style="order: 1">Text1</div> <div style="order: 3">Text3</div> <div style="order: 2">Text2</div> <div class="innerwrapper"> <div style="order: 1">Text1a</div> <div style="order: 2">Text2a</div> </div> </div>

    in reply to: Technical questions / Troubleshooting
    #36520

    Hello,

    another glitch we seem to notice: when we try to use :after pseudoelements on elements using :last-child / :last-of-type or negations thereof, the result is that:
    all elements, including the last element match the negation
    none matches the :last-child or :last-of-type

    <style type="text/css"> .mainwrapper > div:not(:last-of-type):after { content: '|' } .mainwrapper > div::last-of-type:after { content: '<' } .mainwrapper > div:not(:last-of-type) > span:after { content: '>' } </style> <div class="mainwrapper"> <div>Text start <span>(inner)</span></div> <div>Text middle <span>(inner)</span></div> <div>Text last <span>(inner)</span></div> </div>

    Are these selectors be supported in principle?

    Thank you
    Viktor

    in reply to: Technical questions / Troubleshooting
    #36521

    We have a program that runs on Tomcat 10 with Jakarta, that generates pdfs.
    We have found that if after the server start, it receives several request in parallel, the font cache on disk gets meessed up, rendering bad pdfs.
    In the font cache folder (tomcat’s temp) you finde MyFont.ttf 1000 bytes and 1_MyFont.ttf smaller size.
    We are using pd4ml-4.0.15fx1-jakarta.jar.

    #36555

    I’m afraid that :last-child and :last-of-type won’t be supported without a complete refactoring of the CSS runtime.

    Support requires either an additional parsing pass of entire HTML document, or non-trivial look-ahead parsing logic (in extreme cases, it takes even more time/resources than a second parsing pass).

    All our attempts to implement this feature resulted in significant performance degradation even in simple cases where this feature was not used. We have decided to temporarily omit the feature

    in reply to: Technical questions / Troubleshooting
    #36608

    If in the <style> area a formatting with

    td {
    text-align: left;
    }

    appears, the page number is no longer formatted on the right.

    Attachments:
    You must be logged in to view attached files.
Viewing 15 posts - 4,051 through 4,065 (of 4,250 total)