Forum Replies Created
-
AuthorPosts
-
in reply to: custom tags documentation June 27, 2024 at 15:03#38341
Hi! Try this link:
https://pd4ml.com/taglibdoc/in reply to: Technical questions / Troubleshooting June 27, 2024 at 18:04#38345When the text in my textarea is too long/near the bottom of a page, the form element is created twice instead of being split or only on the second page. It seems PD4ML recognizes it may not fully fit on the “first” page so it recreates it on the “second” page, but now it’s duplicated and not respecting the footer.
Attachments:
You must be logged in to view attached files.in reply to: Licensing / Purchasing of PD4ML July 6, 2024 at 15:47#38371Hello,
we have bought a DMS license and we are using Maven to include PD4ML v4 in our build, but seems that the PDF/A support is not availble, the method is not available:
pd4ml.generatePdf(true);
Where am I wrong ?
thanks!
in reply to: PDF/A ? July 6, 2024 at 15:48#38372.. of course I meant:
generatePdfa(true)
in reply to: Technical questions / Troubleshooting July 8, 2024 at 14:22#38373Actually we bought pd4ml pro license for v4 and then we are migrating to 4.0.17 while doing that pdf is generating properly only but we identified one problem with generatepdfa(true). In pdf we are getting “Evaluating Mode pd4ml pdf” watermark. we need some more information about what is difference between pdfa vs pdf generation through pd4ml jar. we need justification for that statement.
This how code looks like in old pd4ml jar
import org.zefer.pd4ml.PD4ML;PD4ML pdf=new PD4ML();
pdf.generatePdfa(true);when we migrate to pd4ml v4.0.17 jar we are getting “Evaluating Mode pd4ml pdf” but when we comment that statement we are getting pdf properly. we need to understand what is difference between generating pdf using pdfa vs pdf(default)
Attachments:
You must be logged in to view attached files.in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 8, 2024 at 14:33#38375Hi! I guess you currently own PD4ML license, which assumes only regular PDF output. PDF/A-b support requires PD4ML DMS license, PDF/A-a and PDF/UA requires PD4ML UA license.
See https://pd4ml.com/products/
You can easily upgrade to the above version by paying the difference in license price (if your maintenance period is still active).
There is no need to replace the PD4ML binaries, you only need to apply a new license code with the required features enabled.in reply to: Technical questions / Troubleshooting July 8, 2024 at 16:22#38376Hi,
Greetings. Hope you are well! I am trying to generated a pdf from a html stream recently we upgraded the platform to latest version and with that pd4ml has been upgraded to 4.0.17. There is no entire html content in the generated pdf and the pdf formatting also does not look good, can you please have a look at the java code and the attached html stream to see if something is changed in v4.0.17?Java Code:
/* Implementing using the PD4ML API per Pega Support Documents
https://community.pega.com/support/support-articles/not-able-set-margin-pdf-document
*/
String PD4ML_DOCUMENT_VIEW_MODE =”pd4ml.document.view.mode”;
org.zefer.pd4ml.PD4ML pd4ml = new org.zefer.pd4ml.PD4ML();
com.pd4ml.PD4ML pd4mlNew = new com.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);
pd4ml.pd4mlNew.setParam(PD4ML_DOCUMENT_VIEW_MODE,”TwoPageRight”);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);
footer.setFont(new java.awt.Font(“Times-Roman”,0,11));
pd4ml.setPageFooter(footer);pd4ml.render(new java.io.StringReader(HTMLStream), baos);
baos.close();
return baos.toByteArray();
Regards,
BharatAttachments:
You must be logged in to view attached files.in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 8, 2024 at 16:43#38379understand thank you
in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 8, 2024 at 16:48#38380And also I need some more info about ss_css2-3.7.1.jar, pd4ml_rc-3.9.8.jar and fonts-3.7.1.jar
when I remove css2 jar it was working fine since we have separate package under pd4ml from 3.9.8 onwards but I didn’t found any information like they merged css related code into main pd4ml jar.
And when we remove fonts jar chinese and arbic languages are not working does version 4 will still supports 3.7.1 fonts jar or we have to do manual configurations for that.
Finally question does we required pd4ml_rc jar since we have samme .ttf files exist in fonts jar as well
in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 8, 2024 at 16:57#38381ss_css2-*.jar is not needed since version 3.9.8, since we implemented our own CSS cascading mechanism.
Any older font JAR is compatible with v4. You can create new font collections using the GUI tool:
in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 8, 2024 at 17:19#38382what about this jar pd4ml_rc-3.7.1.jar
in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 9, 2024 at 08:25#38383can anyone please respond this chat. while doing upgradation we found that font.jar and pd4ml_rc.jar having same ttf files. if we remove pd4ml_rc.jar and keep fonts.jar will anything can break
in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 9, 2024 at 11:57#38384pd4ml_rc-3.7.1.jar contains only the minimal set of fonts needed to produce PDF/A. If it duplicates fonts from other font sources, it can be safely removed.
in reply to: Image rotation based on EXIF orientation metadata July 9, 2024 at 15:56in reply to: issue with generatepdfa(true) while migrating from pd4ml 3.7.1 to 4.0.17 July 9, 2024 at 15:58#38390Thank you for your response it is helpful
-
AuthorPosts