Hello all,

I also experienced a problem like the following.
In my case, PDF with Japanese OTF font can be opened in 
Acrobat 7 or earlier but cannot print to PS printer. 
(print to GDI printer is OK)

Regards,
KuMi

> Hi,
> 
> We are using iText(1.4.8) for creating PDFs in our application. Using 
> DFPHeiStd-W5.otf, we need to create PDFs in simplified chinese. We are using 
> following code snippet for generating a test pdf with DFPHeiStd-W5.otf:
> 
> Document document = new Document();
> PdfWriter writer = PdfWriter.getInstance(document, new 
> FileOutputStream("C:\\Test\\HelloWorld.pdf"));
> document.open();
> String chinese = "ユ簗ヌミワティ"; //Some chinese characters
> FontFactory.register("C:\\SYSROOT\\Fonts\\DFPHeiStd-W5.otf");
> Font chineseFont = FontFactory.getFont("dfphei std w5", BaseFont.IDENTITY_H, 
> 20);
> Paragraph p = new Paragraph(chinese, chineseFont);
> document.add(p);
> document.close();
> writer.close();
> 
> While the PDFs generated in Chinese characters using the above font file and 
> code snippet were getting opened in Acrobat 7, the same PDF is not opening in 
> Acrobat 8. We have tried creating font object using BaseFont.createFont or 
> using FontFactory.register with encoding "GB2312" as well but even that does 
> not help.
> 
> When we use other fonts like STSong-Light or Simhei, PDFs are opening fine in 
> both versions of acrobat.
> 
> Can anyone provide pointers as to why this could be happening? Your help is 
> greatly appreciated.
> 
> Regards,
> Rahul
> 
> 
> **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
> for the use of the addressee(s). If you are not the intended recipient, 
> please 
> notify the sender by e-mail and delete the original message. Further, you are 
> not 
> to copy, disclose, or distribute this e-mail or its contents to any other 
> person and 
> any such actions are unlawful. This e-mail may contain viruses. Infosys has 
> taken 
> every reasonable precaution to minimize this risk, but is not liable for any 
> damage 
> you may sustain as a result of any virus in this e-mail. You should carry out 
> your 
> own virus checks before opening the e-mail or attachment. Infosys reserves 
> the 
> right to monitor and review the content of all messages sent to or from this 
> e-mail 
> address. Messages sent to or from this e-mail address may be stored on the 
> Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to