PDF Generating Tool Support Forum

HOME   Login   Register    Search




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are OFF
Disable BBCode
Do not automatically parse URLs
   

Topic review - TTF embedding
Post subject:  Re: TTF embedding
Here are good starting points:
http://pd4ml.com/reference.htm#7.1
http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
    Post Posted: 28 Jan 2013, 18:06
 
Post subject:  Re: TTF embedding with Maven build
My spring application has a maven build and I want to set up fonts.jar and pd4ml.properties for this build. Can anyone help me get started?
    Post Posted: 26 Jan 2013, 01:50
 
Post subject:  Re: TTF embedding
Please try to substitute your fonts jar with this one:
http://pd4ml.com/i/allfonts.zip (34 MB!)

unpack it and place fonts.jar to the classpath of your application (or to lib/ folder if any).
Refer the fonts this way:
pd4ml.useTTF("java:fonts", true);

And make sure the HTML has a correct meta charset directive.

Does it solve the problem?
    Post Posted: 17 Dec 2012, 15:54
 
Post subject:  Re: TTF embedding
Hello,

I am trying to provide for Asian (CJK) language support in my application. While chinese works out well, the TTF embedding feature doesn't help in case of Korean or Japanese.
I followed all the steps mentioned in the online help for generating pd4fonts.properties for these font files.
In the server logs I can see font files getting resolved. Example, for japanese text, MSminchu.ttf is being loaded (as per the logs), but the generated PDF contains "??????" throughout and the PDF properties - > Font, doesn't show me msminchu font being loaded.
When I deliberately try to load chinese font for Japanese text, then I can see some of the content coming fine (that is because Chinese and Japanese languages share some symbols), but ofcourse that would not be a good solution.

What could be going wrong here? I have been at it for a longtime now. Please help!!

-Ashish
    Post Posted: 14 Dec 2012, 13:24
 
Post subject:  Re: TTF embedding
The fonts are taken from a Win32 distribution and published for educational purposes only. If you own a Windows license, obviously you are allowed to use the fonts in your commercial applications. http://pd4ml.com/examples.zip (chinese_ttf example) provides you with fonts.jar build-script to build the JAR from your very own TTF copies.
    Post Posted: 02 Jul 2012, 15:14
 
Post subject:  Re: TTF embedding
what are the license terms for the fonts used in http://pd4ml.com/i/easyfonts/fonts.jar? Can we use that in our commercial web application in which we generate and serve pdf to the users?
    Post Posted: 02 Jul 2012, 15:06
 
Post subject:  Re: TTF embedding
See:
http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
    Post Posted: 08 Mar 2012, 11:17
 
Post subject:  Re: TTF embedding
Plz help me, How to set unicode for pdf output.? I set charset utf-8 for my html and display normal, but it create pdf output not read
    Post Posted: 08 Mar 2012, 05:49
 
Post subject:  Re: TTF embedding
I guess inputHTML is a String object.

What does the following code print to Java console?
System.out.println(inputHTML);

Is it "Kære" or "Kære"?
    Post Posted: 05 Oct 2011, 16:37
 
Post subject:  Re: TTF embedding
Im using the pro version and with domino server 8.5.1
pd4ml.render(new StringReader(inputHTML), fos, new URL("file:."), "iso-8859-1");

The notesdocument is grabbed by java agent
Document usrDoc = db.getDocumentByID(strUNID);

I can't get it to display danish characters properly

i have tried this also
pd4ml.render(new StringReader(inputHTML), fos, new URL("file:."), "utf-8");

Eksample:
Kære = Kære
pÃ¥ første = på første
    Post Posted: 05 Oct 2011, 16:24
 


Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share