Forum Replies Created
-
AuthorPosts
-
in reply to: Technical questions / Troubleshooting April 28, 2023 at 01:08#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 April 28, 2023 at 12:37#36351Hi! 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-tocin reply to: Technical questions / Troubleshooting April 28, 2023 at 17:17#36352Hello Could you please let me know where can i find a complete list of pd4ml tags and its description.
Thanks
Paulamin reply to: Technical questions / Troubleshooting April 28, 2023 at 21:09#36353Hi 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
Paulamin reply to: Switching a page to landscape and then change the subsequent pages to portrait April 28, 2023 at 21:28in reply to: Problems Rendering HTML Symbols May 8, 2023 at 15:06#36365In 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 May 10, 2023 at 18:44#36373We 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 May 17, 2023 at 10:48#36392v4.0.16, which fixes this issue, is scheduled for release on Monday, May 22, 2023.
in reply to: Technical questions / Troubleshooting May 18, 2023 at 17:53#36402Hi 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
-Marioin reply to: Unable to stretch table width to 100% in landscape mode May 19, 2023 at 02:36#36409Did 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 May 23, 2023 at 16:12#36470Hello,
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 May 24, 2023 at 17:08#36520Hello,
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
Viktorin reply to: Technical questions / Troubleshooting May 29, 2023 at 21:52#36521We 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.in reply to: CSS selector parts using :last-child / :last-of-type seem to get ignored June 1, 2023 at 00:04#36555I’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 June 13, 2023 at 13:01 -
AuthorPosts