Forum Replies Created
-
AuthorPosts
-
in reply to: Text on right side is cut away December 1, 2017 at 19:47#30116
Strange!
pd4ml.useTTF(“java:fonts”, true)
pd4ml.setDefaultTTFs(“Times New Roman”, “Arial”, “Courier New”)After adding this, I see (other as in “normal” pdf viewer) another font face but the margin is correct!
Very strange.in reply to: PDF page headers/footers definition options December 4, 2017 at 05:59#27296PD4PageMark footer = new PD4PageMark() {<br /> public String getHtmlTemplate(int pageNumber) {<br /> if ( pageNumber % 2 == 0 ) {<br /> return "<html><body>some left aligned stuff...";<br /> } else {<br /> return "<html><body>some right aligned stuff...";<br /> }<br /> }<br /> };<br /> pd4ml.setPageFooter(footer);every body help me please, it’s very urgent.
i have followed the code above for printing even condition but something wrong here. if i didn’t print the first page number, the footer page didn’t print . if i tried by odd condition then the footer page will print.in reply to: PDF page headers/footers definition options December 4, 2017 at 06:30#27297Please publish a PDF sample generated from your HTML code.
Please make sure you use PD4ML Pro (or a derived VOL license binary). Also try to place
<pd4ml:page.break>right after opening<body>tag. Does it changes anything?in reply to: HTML/CSS rendering issues December 12, 2017 at 13:33#27179Hi Team,
We are using the pd4ml for creating a PDF from HTML code and below is the manifest information from the jar file
Manifest-Version: 1.0
Class-Path: ss_css2.jar
Ant-Version: Apache Ant 1.6.5
Created-By: yGuard Bytecode Obfuscator 2.0.1
Main-Class: org.zefer.pd4ml.tools.PD4Browser
Implementation-Title: PD4ML Std
Implementation-Version: 323b2After implementing the code using the jar file we are getting an error saying Stream Closed. The same jar file was working earlier but after a few tests we are getting the below error regularly in every case.
java.io.IOException: Stream Closed
at java.io.FileOutputStream.writeBytes(Native Method)
at java.io.FileOutputStream.write(FileOutputStream.java:326)
at org.zefer.pd4ml.pdf.b.?00000(Unknown Source)
at org.zefer.pd4ml.pdf.b.o00000(Unknown Source)
at org.zefer.pd4ml.pdf.e.oO0000(Unknown Source)
at org.zefer.pd4ml.pdf.e.?O0000(Unknown Source)
at org.zefer.pd4ml.pdf.e.?O0000(Unknown Source)
at org.zefer.pd4ml.pdf.e.null(Unknown Source)
at org.zefer.pd4ml.pdf.e.?o0000(Unknown Source)
at org.zefer.pd4ml.pdf.e.?00000(Unknown Source)
at org.zefer.pd4ml.pdf.e.close(Unknown Source)
at org.zefer.pd4ml.pdf.PD4Device.dispose(Unknown Source)
at org.zefer.pd4ml.pdf.PD4Device.finalize(Unknown Source)
at java.lang.System$2.invokeFinalize(System.java:1270)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:98)
at java.lang.ref.Finalizer.access$100(Finalizer.java:34)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:210)Please let us know the further steps that we have to follow to get the successful pdf without any errors in future. Attached the code that we are using for generating the PDF from HTML code for your reference.
in reply to: TTF embedding December 13, 2017 at 14:08#27321ße
in reply to: HTML/CSS rendering issues January 3, 2018 at 10:34#27180[attachment=0:3uy686o6]List of ttf_Server.txt[/attachment:3uy686o6]Hi,
We have a requirement to generate PDF with 31 international languages through PEGA. So, we used required ttf font files and PD4ML JAR (Version: 390 Pro DMS) to generate font properties file (https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm). We are able to generate pdf but facing below issues. Could you please let us know what’s causing these issues and help to get out of this.
1. Images are not displaying in generated PDF. We are having images in local path of PEGA like “Webwb/”.
2. Only for 5 languages Cambodian, Amharic, Gujarati, Laotian, Punjabi generated PDF is displaying junk ‘?’ characters. Even though we loaded all the required ttf fonts files into path.Attached the Java code “GeneratePDF-UsingPD4ML.txt” which is used to generate PDF and list of ttf font files available in server “List of ttf_Server.txt” .
in reply to: Images are not displaying in PDF (PD4ML generation) January 4, 2018 at 09:56#30127Now fonts issue was resolved, we are able to get all the foreign languages in to PDF without junk(?) characters.
in reply to: HTML/CSS rendering issues January 19, 2018 at 16:14#27178is css3 supported, getting some errors
in reply to: HTML/CSS rendering issues January 26, 2018 at 14:43#27177Hi,
Since the last version, embedded images are ignored.
i think the problem is on expression language (EL).
I use some img tag like this:
Are Exression language compatible with pd4ml anymore ?
Best regards,
Jean-Paul Blancin reply to: Troubleshooting January 26, 2018 at 16:38#27175Hi,
My images are generated by Jfreechart and saved in the temp directory. I cannot know their name in advance.
With previous version I’haven’t any problems, i used:
Of course ‘test.src’ contains location and image’s name.Now pd4ml read this with ‘null’ for src attribut …
How can I specify dynamical name ?
Regards,
in reply to: PDF generation with html with css3 January 29, 2018 at 10:42#30124I am creating one htmlString and pass to Pd4ml to generate PDF
for background color i need to use Linear-gradian tag in css which is not support in PDF
Please reffer below code:
htmlString.append(“<style>#grad1 {height: 200px; background: linear-gradient(to right, red , blue);}</style> <div id='grad1'></div>”);in reply to: Expression Language February 5, 2018 at 11:28#30123PD4ML supports dynamic placeholder $[var] substitution with pd4ml.setDynamicParams() API call. (note the square brackets!)
Do you try to use ${test.src} with pd4ml.setDynamicParams()? I am afraid it does not work.
If it is about a more general use of Expression Language, please make sure the EL elements are resolved before the HTML is passed to PD4ML. PD4ML does not process EL by itself.
in reply to: Dynamical image February 5, 2018 at 11:35#30121> Now pd4ml read this with ‘null’ for src attribut …
I would suspect the placeholder is wrongly substituted with null (by JSP container etc) before PD4ML came into action.
in reply to: PDF generation with html with css3 February 5, 2018 at 11:37#30125A lot of CSS3 features supported, but currently not all the spec.
in reply to: Deployment / Configuration issues February 7, 2018 at 16:30#27176Hi,
I have a batch application in java platform to convert HTML file to PDF.And the HTML file has Chinese character in it.I am using fonts.jar and ttf embedding for that.It is working fine in windows system but not working when I deployed it on the production server which is Linux system.
Following are the error/details I am getting in the logs.
version: PD4ML 398fx3 Pro
not yet in cache: java:fonts/pd4fonts.properties
resource java:fonts/pd4fonts.properties not found.
default built-in stylesheet parsed [13ms]
default built-in stylesheet parsed [3ms]Can anyone please help me out this?
-
AuthorPosts
