Forum Replies Created
-
AuthorPosts
-
in reply to: Why Trial version cannot generate PDF with Asian font ? September 8, 2015 at 10:23#29714
Please follow the instructions:
https://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htmMake sure, you use PD4ML Pro trial.
in reply to: can not read ‘arial’ from java:fonts/arial.ttf: problem read September 8, 2015 at 16:16#29708Manooj,
glad the issue is solved on your side!in reply to: Issue with font family on chinese characters September 9, 2015 at 15:02#29821Hi,
thank you for your solution. Would like to know,
Whether we have any workaround without upgrading the library, we are using the v397 licenced version and not easy to change the JAR again. Do we have any workaround where we can solve this.
we really appreciate your support, please give us some suggestions how we can fix this
Regards
Sarinin reply to: Issue with font family on chinese characters September 10, 2015 at 11:29#29822A workaround is to preprocess input HTML and to isolate CJK portions of text to separate spans.
WENJUN Money 育暮趣所及定平関島指形由幹設 Laundering in UNITED KINGDOM IS NOT functional now
to
WENJUN Money 育暮趣所及定平関島指形由幹設 Laundering in UNITED KINGDOM IS NOT functional now
Is it doable on your side?
in reply to: Issue with font family on chinese characters September 10, 2015 at 11:50#29823thanks for your support
we have changed it to call this function before showing the contentimport java.util.regex.Matcher;
import java.util.regex.Pattern;public class CJKFinder {
public static void main(String[] args) {
String str = ” 育暮 1 Great Work M R 12 13 14 育暮趣所及定平関島指形由幹設世戸 122 育暮趣所$及定平関 島指形由幹設世戸 hello. aiguë διαίρεσις”;
System.out.println(applyCJKStyle(str));
}public static String applyCJKStyle(String text){
Pattern pattern = Pattern.compile(“([u4E00-u9FFF]{1,})”);
Matcher matcher = pattern.matcher(text);
StringBuffer output = new StringBuffer();
while (matcher.find()){
matcher.appendReplacement(output, “$1“);
}
matcher.appendTail(output);
return output.toString();
}}
in reply to: General questions / FAQ September 16, 2015 at 05:52#27043Hello there,
I need VolumeLicence (only Java) for 10 developers. Is it correct when I buy VolumeLicence Enterprise version (8000 EUR) for unlimited deployment workstations? Or do I need 10x VolumeLicence – each for 1400 EUR?I tried to find it in licence description but I did not find it exactly described.
Thank You for your help.
Sekvoj
in reply to: Licensing … Volume Licence vs. Enterprise version September 16, 2015 at 13:10#29827Sekvoj,
earlier today I have replied to Milan’s email with an identical question. Are you in contact with him?
in reply to: Convert ASP.Net page with Java Applet forms authentication September 17, 2015 at 12:16in reply to: Table rendering issue with cells containing empty <p> tags September 17, 2015 at 12:29#29739The fix released with version PD4ML Pro 3.9.7 works fine for the first table of the provided example.
But the second table still sizes strange:
The last column only contains empty tags but occupies half of the table width while the text of the second column has to be wrapped.in reply to: pdf to png September 18, 2015 at 01:59#27875@dineshvn wrote:
Hi
will it possible to convert pdf to png format i have to send embedded image in mailThanks in Advance
Regards
Dinesh.NHi, Dinesh.N.
I wonder have you ever found a simple way to convert pdf to png? I am also looking for it. Any suggestion will be appreciated. Thanks in advance.Best regards,
Panin reply to: HTML/CSS rendering issues September 21, 2015 at 12:42#27044Hi,
<pd4ml:include> does not seem to work when used as an alternative of $[page], $[total] and $[title] With this example: <pd4ml:page.header> page: <pd4ml:include dynvalue="page"></pd4ml:include> total: $[total] </pd4ml:page.header>
Output is:
page:
total: 1I am using the latest version: PD4ML 398fx1 Pro
in reply to: pd4ml:include not working as an alternative of $[page], $[to September 21, 2015 at 14:02#29832Thank you for the report. We’ll check what is wrong with the tag in inline header/footer definitions.
in reply to: General questions / FAQ September 22, 2015 at 06:04#27045Hi Team
when we have upgraded the pd4ml to 397 issue, we are having a small issue now. When we have a registered sign, its coming properly in page, but in the bookmark, seeing the text with invalid characters
For example,
<h2>test®</h2>can be seen in the page, but its coming with invalid characters
Please help me how to resolve this,
we have the code
pd4ml.useTTF(“java:defaultfonts”, true); in our applicationRegards
sarinin reply to: Deployment / Configuration issues September 23, 2015 at 11:25#27046Hi, We have the following workflow for generating and storing the PDF
1. create PDF
2. Load ByteArray and store it as BLOB in database.
3. User comes to website and tries to access PDF.
4. PDF sent in response stream.We are facing a weird issue where the file created from PD4ML when opened with Adobe loads the PDF perfectly fine. But if we store the file as byte[] in database and try accessing it from database the PDF loads but none of the images gets displayed in PDF.
Styling is present, only the images are missing.
<br /> ByteArrayOutputStream baos = new ByteArrayOutputStream(4096);<br /> PD4ML pd4ml = new PD4ML();<br /> pd4ml.interpolateImages(true);<br /> pd4ml.enableDebugInfo();<br /> pd4ml.setHtmlWidth(850);<br /> pd4ml.addStyle("BODY {margin: 0}", true);<br /> pd4ml.setPageInsets(new Insets(0, 0, 0, 0));<br /> pd4ml.fitPageVertically();<br /> pd4ml.overrideDocumentEncoding("UTF-8");<br /> <br /> pd4ml.setPermissions("empty", PD4Constants.AllowPrint, true);<br /> pd4ml.setPermissions("empty", PD4Constants.AllowModify, false);<br /> pd4ml.setPermissions("empty", PD4Constants.AllowCopy, true);<br /> <br /> pd4ml.render(new StringReader(htmlCode), baos);<br /> byte[] bytes = baos.toByteArray();<br /> ############<br /> # Store bytes in DB<br /> ############<br /> <br /> <br /> <br /> ############<br /> # Servlet<br /> ############<br /> response.getOutputStream().write(byte[]/* from database.*/);<br /> response.setContentType("application/octet-stream");<br /> response.setHeader("Content-Disposition","attachment;filename=file.pdf");<br />in reply to: HTML/CSS rendering issues September 28, 2015 at 12:26#27047We are switching from Java 6 to 8 thereby we noticed that with the new Java version all zero-width-space characters are printed in PDF files.
See attached example files to see the difference – input for both files is the same only the Java version is different.Seems that the switch from Unicode 4.0 to Unicode 6.0 in Java 7 is affecting the PD4ML library (https://josm.openstreetmap.de/ticket/8918).
-
AuthorPosts
