Please post the font or the pdf.

Paulo 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Rahul Koul
> Sent: Tuesday, May 20, 2008 11:46 AM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] DFPHeiStd-W5.otf - PDF not opening 
> in Acrobat 8
> 
> 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


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

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