Thanks Paulo. We will look for the suggested options. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Wednesday, May 21, 2008 5:01 PM To: Post all your questions about iText here Subject: Re: [iText-questions] DFPHeiStd-W5.otf - PDF not opening inAcrobat 8
(Please use the mailing list.) You can use any ttf font. It may interest you that 2.1.2u has support for fonts in other Unicode planes like simsunb.ttf. Paulo > -----Original Message----- > From: Rahul Koul [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 21, 2008 10:56 AM > To: Paulo Soares > Subject: RE: [iText-questions] DFPHeiStd-W5.otf - PDF not > opening inAcrobat 8 > > Thanks Paulo. By setting BaseFont.setSubset(false) the PDF > created with 2.1.2u is viewable in acrobat 7 as well as 8; > size is of course big (~ 2MB for 5 lines of chinese text). I > expect to create quite a few PDF docs and size would become a > bottleneck. > > I am not sure if this behavior of version 7 and version 8 is > true for other CJK fonts as well. > > So until there is a solution for DFPHei in iText, would you > suggest using STSong-Light/SimHei instead? > > Regards, > Rahul > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Paulo Soares > Sent: Wednesday, May 21, 2008 2:52 PM > To: Post all your questions about iText here > Subject: Re: [iText-questions] DFPHeiStd-W5.otf - PDF not > opening inAcrobat 8 > > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Rahul Koul > > Sent: Wednesday, May 21, 2008 8:28 AM > > To: Post all your questions about iText here > > Subject: Re: [iText-questions] DFPHeiStd-W5.otf - PDF not > > opening inAcrobat 8 > > > > Some more information: > > > > One of my friends was using a much lower version of iText > > (1.02b) and PDF created with chinese text in it using > > DFPHeiStd-W5.otf is opening in acrobat 8 as well as 7. > > However the PDF size is around 2MB for 4-5 line of Chinese > > text written. > > > > It didn't subset the font. You can also not subset the font > with BaseFont.setSubset(false) but CJK fonts are always huge > and this is no solution. I'll see what I can do when I have > some free time. > > Paulo > > > Version 2.1.2u creates the same PDF as 34KB, viewable in > > acrobat 7 but only opening in acrobat 8 without displaying > > any characters. Upon movement of cursor some portions are > > selected which when copied and pasted in notepad is the > Chinese text. > > > > -----Original Message----- > > From: Rahul Koul > > Sent: Tuesday, May 20, 2008 5:46 PM > > To: 'Post all your questions about iText here'; > '[EMAIL PROTECTED]' > > Subject: RE: [iText-questions] DFPHeiStd-W5.otf - PDF not > > opening in Acrobat 8 > > > > The PDFs are attached. > > > > Some more info that we noted - Sometimes the PDF with "DFPHei > > Std W5" font opens in Acrobat 8 but appears as blank. When we > > checked the file size, it was not zero. Upon moving the > > cursor in the file we are able to select certain portions > > which when copied and pasted in notepad are the Chinese > > characters that are being written. > > > > Attached file Hei-8-Black.pdf is displaying above mentioned > > behavior in acrobat 8 and opens fine in acrobat 7. Other two > > pdfs attached open fine in both acrobat 8 and 7. > > > > Please let me know if you need the font as well (It is a 3MB file). > > > > Thanks, > > Rahul > > PS: We also tried using the iText 2.1.2u jar. > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On > > Behalf Of Paulo Soares > > Sent: Tuesday, May 20, 2008 5:15 PM > > To: Post all your questions about iText here > > Subject: Re: [iText-questions] DFPHeiStd-W5.otf - PDF not > > opening in Acrobat 8 > > > > 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 **************** 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