Forum Replies Created
-
AuthorPosts
-
in reply to: Soft hypens not rendered correctly November 8, 2019 at 13:32#33744
Hi Oliver! Sorry for the delay with the reply and the avatar issue. We are in a transition phase from the older to new web site design, and currently pd4ml.tech runs a dummy design, obviously with the style flaws.
I’ve created a ticket for the hyphen issue and assigned the top priority to it. Hopefully we have a solution within the next week.
in reply to: Evaluation License November 8, 2019 at 13:50#33745The feature should work in the demo. Is H006.htm from PD4ML’s usage examples? If you use a modified version, please send the HTML sample to support pd4ml com
And sorry for the delay with the reply: the email notifications from the forum are failed to deliver since few weeks, because of a DNS issue. We work on it.
#33746Thank you. Has there been any updates on the flex support for v4?
in reply to: Soft hypens not rendered correctly December 6, 2019 at 07:41#33747Any news? Maybe a fixed version as surprising Christmas present? 😉
in reply to: Technical questions / Troubleshooting December 15, 2019 at 14:56#33787I switched our online wysiwyg editor from CKEditor to Froala. Our users are now running into issues with PD4ML converting the HTML and not formatting the document correctly as it relates to images. For example, below should produce an image with text below it. The Chrome Browser (save as PDF) produces the correct result, but the PD4ML java library produces something quite different. I am using the PD4ML version 4.0.7-SNAPSHOT. I’ve attached the resulting PDFs as well. Anyone know how I can address this? I have tested this html on another pdf library and the format was fine as well (but I would prefer to stick with PD4ML as it’s much faster)
Class Setup
private static final int margin_top = 15; private static final int margin_bottom = 15; private static final int margin_left = 15; private static final int margin_right = 15; private static final int htmlPixelWidth = 780; PD4ML pd4ml = new PD4ML(apiKey); pd4ml.setPageSize(PageSize.LETTER); pd4ml.setPageMargins(new PageMargins(margin_left, margin_top, margin_right, margin_bottom, Dimensions.Units.MM)); pd4ml.setHtmlWidth(htmlPixelWidth); pd4ml.useTTF("java:fonts", true); // Embed fonts pd4ml.monitorProgressWith(progressMonitorPD4ML);
Source HTML
<img src="https://staging.aframeonline.com/afs/FileView.action?t=df462609-c1d1-4499-9718-1943c419e908&f=24d20468-991e-47e2-9574-50ba9023da58" style="width: 300px; display: block; vertical-align: top; margin: 5px auto 5px 0px; text-align: left;"> Text that should appear below the image
in reply to: Issue formatting image tag correctly when converting HTML -> PDF December 15, 2019 at 14:59in reply to: Soft hypens not rendered correctly January 3, 2020 at 09:57#33791Hi Oliver! It has taken longer, but the fix is finally available as v4.0.7
in reply to: Technical questions / Troubleshooting January 3, 2020 at 14:00#33793Hi,
we try to upgrade our PD4ML from version 3.9.3 to 4.x (last try with 4.0.7).
We use ‘word-wrap: break-word;’ to break to long words. With 3.9.3 this works also for ‘unbreakable’ words like ‘abcdefghijklmnopqrstuvwxyz’.
After upgrade to 4.0.7 no break is insert.
Do I do something wrong or is it just not supported in version 4.x?
I tried with demo mode.Test html:
<html>
<head></head>
<body>abcdefghijklmnopqrstuvwxyz</body>
</html>Attached the generated pdf files.
Thank you for your support.
Oliver BreidenbachAttachments:
You must be logged in to view attached files.in reply to: Soft hypens not rendered correctly January 3, 2020 at 14:44#33796Thanks, it is working fine now.
in reply to: Technical questions / Troubleshooting January 13, 2020 at 17:25#33872Hi pd4ml,
We have some markup where there is nested div structure and we are applying display:inline-block to the top level
.
Seems like inline-block with width auto is not working in case of nested structures. Please find the markup and generated PDF in attachment.Note : We are using pd4ml-4.0.6 jar
Is it possible to provide a fix (or)
Can you please suggest some css which will work with pd4ml? (In browser, the output is proper)Thanks,
RekhaAttachments:
You must be logged in to view attached files.in reply to: inline-block with width auto not working properly with nested elements January 13, 2020 at 17:27#33874Please find the markup we are using:
<html><head>
<style>.content-sub_section {
display : inline-block;
width : auto;}
.content-field {
width : 50%;
display : inline-block;
float : left;
}</style>
</head><body>
<span>100</span><span>King</span><span>50</span><span>101</span><span>Mark</span><span>70</span></body>
</html>
in reply to: inline-block with width auto not working properly with nested elements January 13, 2020 at 17:29#33875<html>
<head>
<style>.content-sub_section {
display : inline-block;
width : auto;}
.content-field {
width : 50%;
display : inline-block;
float : left;
}</style>
</head><body>
<span>100</span><span>King</span><span>50</span><span>101</span><span>Mark</span><span>70</span></body>
</html>
in reply to: inline-block with width auto not working properly with nested elements January 13, 2020 at 17:31#33876`<html>
<head>
<style>.content-sub_section {
display : inline-block;
width : auto;}
.content-field {
width : 50%;
display : inline-block;
float : left;
}</style>
</head><body>
<div class=’layout-content-inline’>
<div class=’content-sub_section’>
<div>
<div>
<div class=’parent’>
<div class=’layout-content-inline_grid_double’>
<div class=’content-field’>
<div>
<div>
<span>100</span>
</div>
</div>
</div>
<div class=’content-field’>
<div>
<div>
<span>King</span>
</div>
</div>
</div>
<div class=’content-field’>
<div>
<div>
<span>50</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class=’content-sub_section’>
<div>
<div>
<div class=’parent’>
<div class=’layout-content-inline_grid_double’>
<div class=’content-field’>
<div>
<div>
<span>101</span>
</div>
</div>
</div>
<div class=’content-field’>
<div>
<div>
<span>Mark</span>
</div>
</div>
</div>
<div class=’content-field’>
<div>
<div>
<span>70</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body></html>
in reply to: Technical questions / Troubleshooting February 26, 2020 at 09:02#33877We have upgraded pd4ml library from version 3.1.1 to version 4.0.7. for version 3.1.1 generated pdf is not breaking page. it was showing as expected. but after upgrading to version 4.0.7 generated pdf have blank pages. unnecessary height is added. can you please help us for this issue.
in reply to: Blank pages added after generating pdf for v4.0.7, for prev v3.1.1 it was workin February 26, 2020 at 09:14#33878Hi! Please publish HTML code, which could help us to reproduce the issue or contact support by email. Thanks!
-
AuthorPosts