Forum Replies Created
-
AuthorPosts
-
in reply to: Headers and footers rotated on page rotation November 11, 2022 at 13:05#35656
The latest v4.0.15fx2 snapshot build adds a new
landscape
option for convenience to change the page orientation without rotating the header and footer:<pd4ml:page.break pageFormat="A4,landscape">
in reply to: Headers and footers rotated on page rotation November 15, 2022 at 10:42#35663It works fine, thanks a lot for your help.
in reply to: Licensing / Purchasing of PD4ML November 22, 2022 at 10:51#35713Good morning, I need your help to understand which licence my company should buy.
We are integrating PD4ML PRO in a java enterprise application, the final product:
– SW id developed by 1 company division
– the final product is deployed in clouds and on premises by 1 company division
– the final product is sold by affiliate companiesPlease clarify is SITE license is enough or if we need to buy the ENTERPRISE one. Thanks.
in reply to: Which licence, SITE or ENTERPRISE November 22, 2022 at 12:21#35714Hello! If, in the described scenario, technical support requests will come from only one division of the company that developed the product, then a SITE license is sufficient.
If selling affiliates/partners will also be requesting support directly (or forwarding requests from end users), then you will need an ENTERPRISE
in reply to: Technical questions / Troubleshooting November 23, 2022 at 16:20#35738We recognized a difference in the PDFs we rendered on windows to those on Linux systems.
To test it we rendered the watermarkTest.html on both systems and the difference shows in the attached PDFs.
The PD4ML version used is 4.0.15.Any idea to solve this issue is very much appreciated.
Attachments:
You must be logged in to view attached files.in reply to: Technical questions / Troubleshooting December 1, 2022 at 13:53#35782Hi,
Greetings. Hope you are all well! I am using pd4ml to render a HTML stream as pdf. Legacy code uses PD4ML_ABSOLUTE_ADDRESS_SPACE and i am not sure what this constant does. Can someone please let me know the use of this constant?
java.util.Map m = new java.util.HashMap();
m.put(org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, “document”);
pd4ml.setDynamicParams(m);Regards,
Bharatin reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE December 1, 2022 at 14:10#35783Hi!
PD4ML_ABSOLUTE_ADDRESS_SPACE=document
forced older versions of PD4ML to ignore impact of page breaks on the vertical coordinate axis.
Let’s say you have an image absolutely positioned at y=200px and it still fits the first page of the document, and in your document there is a forced page break at 100px.
WithPD4ML_ABSOLUTE_ADDRESS_SPACE=document
the image was placed still on the first page, but regular flow content with y>100px went to the next.
WithPD4ML_ABSOLUTE_ADDRESS_SPACE=page
the image was placed on the next page as the regular flow content with y>100px.The option is not supported by v4 (until a customer request). The current behavior matches
PD4ML_ABSOLUTE_ADDRESS_SPACE=page
in reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE December 1, 2022 at 14:12#35784Hi, Thank you, Even though i am using PD4ML v4.0.13, i see there are old classes from org.zefer.pd4ml still available, Are you saying that org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE = document is no longer supported?
Regards,
Bharatin reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE December 1, 2022 at 14:19#35785The org.zefer.pd4ml classes in v4 are to support v4 JAR as a drop-in replacement for v3. The classes translate old API calls to the new ones where it is possible.
PD4ML_ABSOLUTE_ADDRESS_SPACE = document
behavior tried to simulate pagination logic of HTML printing in older Web browsers. As far as I know, modern browsers does not break pages that way anymore. So we did not try to reimplement the feature in v4 (yet).in reply to: PD4ML_ABSOLUTE_ADDRESS_SPACE December 1, 2022 at 14:47#35786Thank you
in reply to: Technical questions / Troubleshooting December 1, 2022 at 14:54#35787Hi,
Greetings. Hope you are well! I have a code rendering the HTML to pdf using both v 3 and v4. However in v3, it renders right but in v4 it does not render the entire HTML and format does not look good as well. This is the code i am using
org.zefer.pd4ml.PD4ML pd4ml = new org.zefer.pd4ml.PD4ML(); java.awt.Insets margins = new java.awt.Insets(30,25,30,25); // Add letter border (top, left, bottom, right) pd4ml.setPageInsetsMM(margins); pd4ml.setPageSize(org.zefer.pd4ml.PD4Constants.A4); pd4ml.protectPhysicalUnitDimensions(); pd4ml.interpolateImages(true); java.util.Map m = new java.util.HashMap(); m.put(org.zefer.pd4ml.PD4Constants.PD4ML_ABSOLUTE_ADDRESS_SPACE, "document"); pd4ml.setDynamicParams(m); java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); org.zefer.pd4ml.PD4PageMark footer = new org.zefer.pd4ml.PD4PageMark(); footer.setPageNumberTemplate("$[page] of $[total]"); footer.setPageNumberAlignment(org.zefer.pd4ml.PD4PageMark.RIGHT_ALIGN); footer.setColor(new java.awt.Color(0x303030)); footer.setInitialPageNumber(1); footer.setPagesToSkip(0); footer.setFontSize(11); footer.setAreaHeight(20); pd4ml.setPageFooter(footer); pd4ml.render(new java.io.StringReader(HTMLStream), baos); baos.close(); return baos.toByteArray();
I have attached the screen shots of pdfs rendered via v3 and v4. Please have a look
Attachments:
You must be logged in to view attached files.in reply to: pd4ml v4 does not render entire HTML stream December 1, 2022 at 15:02#35790Hi! Could you please also share the source HTML doc with us?
in reply to: pd4ml v4 does not render entire HTML stream December 1, 2022 at 15:34in reply to: pd4ml v4 does not render entire HTML stream December 1, 2022 at 18:35in reply to: pd4ml v4 does not render entire HTML stream December 2, 2022 at 15:55#35798Hi,
Greetings. Hope you are well! Did you get a chance to look at the source html and see why the pdf is not rendering right when using pd4ml v4?
Regards,
Bharat -
AuthorPosts