Forum Replies Created
-
AuthorPosts
-
in reply to: Batik implementation June 19, 2019 at 10:46#30210
Hi there,
We’ve got the Batik-all dependency setup fine. The issue is more with the Java steps required to use Batik within PD4ML. The code that we have is essentially as follows:
this.pd4ml = new com.pd4ml.PD4ML(); Dimension dimension= PD4Constants.A4; pd4ml.setPageSize(new PageSize(dimension.width, dimension.height)); Insets insets = new java.awt.Insets(5,5,5,5); pd4ml.setPageMargins(new PageMargins(insets.left, insets.top, insets.right, insets.bottom)); pd4ml.readHTML(is); pd4ml.writePDF(baos);
I’m not exactly sure where Batik fits in this process, though I’d imagine it’d be somewhere between readHTML and writePDF.
To clarify exactly what the issue is, we are trying to render a SVG textpath (which doesn’t seem to be supported by the PD4ML in-built SVG renderer), so we’re trying to use Batik within the code that we currently have, but are not sure how.
Is there a method that needs to be called in order to load Batik into PD4ML?
Kind regards
in reply to: TTF embedding March 26, 2019 at 15:51#27323@PD4ML wrote:
Please try to substitute your fonts jar with this one:
https://pd4ml.com/i/allfonts.zip (34 MB!)unpack it and place fonts.jar to the classpath of your application (or to lib/ folder if any).
Refer the fonts this way:
pd4ml.useTTF("java:fonts", true);And make sure the HTML has a correct meta charset directive.
Does it solve the problem?
No it does not solve the problem
in reply to: Why 97 PPI and not 96 PPI in this lib? March 18, 2019 at 13:47#30217Please look at the code:
<div class="square" style="height:1in;width:1in;">width 1in</div> <div class="square" style="width:2.54cm;">width 2.54cm</div> <div class="square" style="width:72pt;">width 72pt</div> <div class="square" style="width:96px;">width 96px</div>
All bars should have the same width but the 96px bar is smaller… a 97px matches so i think the internal factor is wrong or rounded to much or something like that.
A global scale should not do something on the relative size of the elements to each other 1inch = 2.54 cm; 1inch = 72 pt; 1inch = 96px <- and it looks like this is actually 1inch = 97px The match of real paper inch don't matter here.in reply to: Footer disappears dependent of font size February 27, 2019 at 07:04#30215By the way, I tested it with font sizes from 3pt to 12pt. Just the 7pt does not work.
in reply to: vertical-alignment February 21, 2019 at 13:21#30204Hi,
If there will be any update or new information, please write here, I keep checking this topic 🙂
Elena
in reply to: Floating elements are reordered February 21, 2019 at 07:43#30189That’s great. The ordering is correct now.
Unfortunately, soft hypen (shy) are always rendered, not only on line breaks.
Is there an overview of supported feature for the 4.0 release?in reply to: vertical-alignment February 19, 2019 at 10:56#30203Thanks a lot,
Elenain reply to: vertical-alignment February 19, 2019 at 10:38#30205Hello,
We have tried the proposed workaround with position: relative; top:
<inverted value of vertical-align>, unfortunately it did not work. We have tried to modify values of top manually so they would result in a good result in PDF, but did not find any rule or algorithm or coefficients that could be generally used to adjust the vertical alignment in PDF correctly.
It would be great if you could help us solve this problem, as in the current state exported document is almost not usable.
I am attaching the link to a sample HTML document (original with vertical-align) that we are trying to export:
https://drive.google.com/file/d/18EWWqF7Ij_t-qQ6bf8VOY9ESTMZrQumO/view?usp=sharing. I can also provide documents with vertical-align changed to position: relative; top: … if that could help.Thanks in advance,
Elenain reply to: PDF rendering issue with display:block January 30, 2019 at 09:00#29422End of January 2019 and display:inline-block is still not working. Please fix.
in reply to: PageBreak, total numer of pages January 24, 2019 at 17:41#30164Hi,
in other words:
I want to do a page break but exclude the following page(s) from total number of pages ($total).
THX!
in reply to: Hanging Threads! January 22, 2019 at 02:34#30162i use the pd4ml with version 1.0, there is no method to set TIME_OUT parameter, any suggestions to reslove it ?
in reply to: Please help ASAP! Corrupted Chinese Character(4bytes UTF-8) January 16, 2019 at 02:13#30193hi @PD4ML
After testing v3.10.9, the 4-byte Chinese characters even are not displayed as questionmarks, but as blank characters.
Please try these 4-bytes Chinese Character here http://www.i18nguy.com/unicode/supplementary-test.html
Please help ASAP! Big Thanks.
in reply to: Facing different rendering issues after upgrading PD4ML lib December 20, 2018 at 04:44#30187Hi PD4ML team,
We are also seeing a difference in default fallback fonts. Could you please let us know for version 3.10.7s2 what is the default fallback font?
Kindly treat these queries as priority, we are getting many customer issues after the upgrade in PD4ML lib.Thanks,
Yogitain reply to: Facing different rendering issues after upgrading PD4ML lib December 19, 2018 at 05:12in reply to: Is vertical-align supported? November 27, 2018 at 15:12#30147Hi jamesy!
Thanks for pointing out the list of supported CSS properties. I’ve overlooked it
somehow (and I’m ashamed now).Whatever trouble I had back then it’s irrelevant by now.
Cheers!
-
AuthorPosts
