I need to know the font that we should be using in flying saucer to print Chinese characters in generated pdf in OS - Unix/Linux.
Thanks,
Amit
Related
I am using Aspose.pdf for vb.net to convert my data to .pdf file.
File contains Arabic Characters and is using Cairo font.
The generated pdf file not display any Arabic words!
How can I solve this issue?
I have a PDF file containing some Burmese text in it. The PDF is generated with wkhtmltopdf with embedded fonts (Myanmar Census 3 [Pyidaungsu] for the Burmese text).
Some of the Burmese text is displayed correctly, while others are not: some characters are displayed in the wrong order.
However, when I copy the text from the PDF over to another program, it looks correct (indicating that the Unicode mapping was embedded correctly in the PDF).
Any pointers as to why the rendering of the font is out of order (in Burmese or any other language)?
Versions tried:
- wkhtmltopdf 0.12.2.1 and 0.9.9.1
- ghostscript 9.15
- OS: Mac OSX and Linux
I am generating PDF files which contain English and Chinese characters (using the Ruby Prawn library). I don't want to embed a Chinese font file in the generated PDF files, because these files need to stay small. So I'm wondering if I could just mentioning a Chinese font name in my PDF files, and have the PDF readers correctly rendering the Chinese characters because the PDF readers would already have the Chinese font file.
Is that something sensible? If so is there any commonly used Chinese font that one can expect to be installed in most of the PDF readers used by Chinese people?
The best way to ensure that a PDF file can be displayed on a any reader, is to use partially embedded fonts (also known as font subset). In PDF, you don't need to include the whole font with your document, having a subset with just the glyphs that were used in the file is enough for the file to be portable.
I am writing arabic text programmatically as discussed here and here.
As per this solution, I can see english text in proper font, however when I am doing same with Arabic font, default font is coming and not the real one. Below are the screenshots for the same.
English working fine
Arabic taking default font instead of actual font
Font.ttf screenshot
Downloaded arabic font from here. (third font in list Font #: 23)...
My Question Is, why this is happening with Arabic font?
I checked with Hindi font and it is working fine. The only problem is with ARABIC font.
I am using FPDF to create a PDF and tFPDF to allow for unicode characters, such as Chinese, Japanese, or Korean.
I am using the ex.php that was in the tFPDF example files.
I added some Japanese and Chinese Characters to the Hello World.txt file, but those characters are not showing up, even in the default DejaVu font that was included.
What do I need to do to make other characters like Japanese, Chinese, Korean show up?
The API that you're using needs to provide specific support for encoding the unicode characters that you're trying to add to the document. This is done by way of a codepage / charset for those characters. There are a number of different charsets available for Japanese, Chinese and Korean characters such as Hangeul, GB2312, Chinese Big 5, Shift JIS, etc.
The API that you're using needs to support the charset that matches the text which you're trying to add.
It looks like FPDF supports some Chinese codepages since there's some info on their forum about adding text using GB2312 and Chinese Big 5, but as they don't appear to mention unicode on their main pages, my guess is that they don't provide extensive support for it.
There is a multi byte version of fpdf called mbfpdf (freely available I suppose). With that and the PGOTHIC font, it is possible to display Asian characters. I have used this class (mbfpdf) to create a few pdf files myself and it worked well.