Forum Replies Created

Viewing 15 posts - 511 through 525 (of 4,246 total)
  • Author
    Posts
  • in reply to: Conversion issue with Chinese characters
    #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%
    #27937

    You 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
    #26362

    I 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
    #27933

    hi
    I have to set logo in first page only.
    how can i do?

    Thanks in Advance
    Regards
    Dinesh.N

    in reply to: How to save pdf file directly on disk
    #27843

    By 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
    #27427

    Hi 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 Pro

    I 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 properly

    My 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
    #27808

    thanks for your help and your immediate replay

    in reply to: PDF loading crash in IE with Google Toolbar
    #27919

    Please 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
    #26363

    Hi
    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 page

    Regards
    Dinesh.N

    in reply to: General questions / FAQ
    #26364

    Does this script have multi language support? I want to convert arabic html pages into pdf. Reply me asap.

    in reply to: Different Languages
    #27941

    Yes. But you need to configure TTF embedding feature:
    pd4ml-html-css-pdf-tips-tricks-f7/ttf-embedding-t42.html

    in reply to: PDF Body Fills 50% of the page, Header/Footer Fill 100%
    #27938

    Thank 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
    #27812

    I 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
    #26365

    HTML:
    <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
    #27813

    I 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?

Viewing 15 posts - 511 through 525 (of 4,246 total)