Forum Replies Created
-
AuthorPosts
-
in reply to: PDF Body Fills 50% of the page, Header/Footer Fill 100% April 7, 2010 at 12:48#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: Conversion issue with Chinese characters April 1, 2010 at 15:00#27379In 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: Does Not Find New Fonts April 1, 2010 at 14:44#27928Thank you for your reply.
I did end up getting this to work only by using the ‘
setDefaultTTF()’ method.(Incidentally, it is really non-intuitive the way the other alternative–embedding them in a JAR–expects that it look for a directory within the jar. I would have expected that notation to be the name of the jar. In any case, I did not use that method because of that ambiguity.)
-
AuthorPosts
