Forum Replies Created
-
AuthorPosts
-
in reply to: Conversion issue with Chinese characters April 1, 2010 at 15:00#27379
In my experience, there are several things you need to do to get Chinese characters to be recognised:
i.) Set the encoding to be UTF-8
ii.) Within your pd4fonts.properties, make sure you have correctly listed your font. A font has a file name that will end in .ttf and an internal name that you discover by clicking on the file. If that internal font name has spaces in it, then you need to insert a character before every space. (But the spaces still appear.) The .ttf file should be located in the same directory as the ‘pd4fonts.properties’.
iii.) Finally, in the code that generates your PDF, you need to execute the PD4ML method ‘setDefaultTTF()’, using the internal font name.in reply to: PDF Body Fills 50% of the page, Header/Footer Fill 100% April 2, 2010 at 08:19#27937You need to decrease parameter value of setHtmlWidth() to match HTML document content width.
adjustHtmlWidth() is intended to automatically decrease the value. (in other words to cut blank space right side) But if your document has elements with width=100% attributes (or for example
elements), that would mean there is no blank space – nothing to cut.
I assume you did not call fitPageVertically()
in reply to: General questions / FAQ April 2, 2010 at 17:57#26362I am evaluating PD4 using the Java code examples for my project. But for some reason I cannot convert this page:
http://www.accesselearning.net/mod1/1_01.php
Can you please set me the right directions to accomplish this?
Thanks.
-CG
in reply to: logo in header April 4, 2010 at 11:46in reply to: How to save pdf file directly on disk April 4, 2010 at 20:52#27843By default Pd4Php outputs to STDOUT. The output can be redirected in UNIX-style to any file with “>filename” at the end of the command line.
[language=java:1wk8s87x]passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' .
$_POST['url'] . '' 800 A4 2>>stderr.txt >/path/file.pdf');[/language:1wk8s87x]As I remember the actual versions of Pd4Php support also “-out filename” parameter:
[language=java:1wk8s87x]passthru('java -Xmx512m -Djava.awt.headless=true -cp .:pd4ml_demo.jar Pd4Php '' .
$_POST['url'] . '' 800 A4 -out /path/file.pdf 2>>stderr.txt');[/language:1wk8s87x]in reply to: PD4ML getting out of memory errors April 4, 2010 at 20:55#27427Hi PD4ML Support team,
I have a question regarding my “out of memory” problem.
My environment:
– OS: AIX
– Apps Server: Weblogic 6 (JDK 1.3)
– PD4ML 350 ProI tried to use PD4ML 350 Pro to print chinese character in PDF by accessing TTF file.
The TTF file size is 22 MB.The parameter of java options in weblogic start script is the following
-Xms=128m -Xmx=256m -> always throwing error “out of memory” when converting to PDF
-Xms=512m -Xmx=512m -> always throwing error “out of memory” when converting to PDF
-Xms=128m -Xmx=512m -> working properlyMy question is why when I set the heap size -Xms=512m -Xmx=512m, always throwing out of memory
and -Xms=128m -Xmx=512m it can work properly.Is my setting above correct (-Xms=128m -Xmx=512m) ?
Thank you
in reply to: graph not plotted April 4, 2010 at 20:56#27808thanks for your help and your immediate replay
in reply to: PDF loading crash in IE with Google Toolbar April 4, 2010 at 20:56#27919Please try to open the link from your site (http://pd4ml.com/examples.htm) from “4. Web scenario: Using PD4ML custom tags in JSP.” –> “Click here to see the resulting PDF. (Tomcat 4.1.30 WinXP) ” in IE with Google toolbar installed. This is the scenario.
Thanks.
in reply to: General questions / FAQ April 5, 2010 at 10:57#26363Hi
i have a table it contain more than 3 page data
i had put pdf i have missed a row value when the row sent to the next pageRegards
Dinesh.Nin reply to: General questions / FAQ April 6, 2010 at 16:25#26364Does this script have multi language support? I want to convert arabic html pages into pdf. Reply me asap.
in reply to: Different Languages April 6, 2010 at 18:13#27941Yes. But you need to configure TTF embedding feature:
pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.htmlin reply to: PDF Body Fills 50% of the page, Header/Footer Fill 100% April 7, 2010 at 12:48#27938Thank you kindly for the reply. You are correct, I did not call “fit page vertically”. I will follow up with your advice.
Thank you!
in reply to: uncorrect size for image April 8, 2010 at 10:10#27812I have the same issue!
It’s like if I use zoom property in the css… but I didn’t use it.
How to fix?
Thanks
Mk
in reply to: HTML/CSS rendering issues April 9, 2010 at 15:27#26365HTML:
<br /> <script><br /> window.attachEvent("onload", function(){<br /> // replace id='Text1' innerHTML to "AAA"<br /> })<br /> </script><br /> ...<br /> <span id="Text1" > </span><br />
IE6 is workable, include print,
I tested Acrobat in the IE’s toolbar to transfer page, Text1 printed “AAA” in the PDF, but PDF printed nothing in the Text1 with PD4ML.in reply to: uncorrect size for image April 9, 2010 at 19:34#27813I have the same problem here…In HTML the imagem is shown in normal size. When it is rendered with PD4ML, the image is zoomed.
How can we fix that?
-
AuthorPosts