It won't work. Compile a modified PdfOutline and put it first in the
classpath.
I tought a bit about this and the process can be automatic: if only
PdfDocEncoding chars are found then there's no need to go to full Unicode.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Jianhua Jin [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 06, 2003 18:37
> To:   Paulo Soares; [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] Character Encoding in PdfOutline Entry
> Titl e
> 
> Paulo,
> 
> If I don't want to mess with the iText.jar, do you
> think the following would work:
> 
> define a class with the extact signature
> 'com.lowagie.text.pdf.PdfStringExt extends package
> com.lowagie.text.pdf.PdfString', so that I can call
> constructor PdfStringExt(String value, String
> encoding) and create PdfOutline with the PdfString
> Object. 
> 
> Will the encoding be kept as I define in the
> PdfStringExt constructor in the after PdfOutline is
> closed?
> 
> 
> Thank you very much.
> 
> 
> --- Paulo Soares <[EMAIL PROTECTED]> wrote:
> > Some pdf processors are really brain-dead. In the
> > next version you'll have
> > the option to zap all the Unicode from the outlines
> > before closing. If you
> > are time-pressed go to PdfOutline and replace all
> > PdfObject.TEXT_UNICODE for
> > PdfObject.ENCODING.
> > 
> > Best Reagrds,
> > Paulo Soares
> > 
> > > -----Original Message-----
> > > From:     Jianhua Jin [SMTP:[EMAIL PROTECTED]]
> > > Sent:     Thursday, February 06, 2003 16:27
> > > To:       [EMAIL PROTECTED]
> > > Subject:  [iText-questions] Character Encoding in
> > PdfOutline Entry
> > > Title
> > > 
> > > The following are two Outline Entries Objects.
> > Note
> > > the difference in character encoding in the title.
> > > Some stupid pdf processer can not read the title
> > from
> > > the iText object. It is possible to instruct iText
> > to
> > > encode the title String the same way as the Adobe
> > > Writer does?
> > > 
> > > Thanks.
> > > 
> > > 
> > > 
> > > An Outline Entry Object from Adobe PDF Writer:
> > > 
> > > 1485 0 obj
> > > << 
> > > /Title (5\tInvestigational Plan)
> > > /Parent 1447 0 R 
> > > /First 1487 0 R 
> > > /Last 1488 0 R 
> > > /Prev 1489 0 R 
> > > /Next 1481 0 R 
> > > /A 1490 0 R 
> > > /Count -3 
> > > >> 
> > > endobj
> > > 
> > > An Outline Entry Object from iText: (<null>
> > indicates
> > > the null character 0):
> > > 
> > > 
> > > 550 0 obj
> > > << 
> > > /Count -24 
> > > /Prev 549 0 R 
> > > /Dest [ 1 0 R /Fit ] 
> > > /Parent 547 0 R 
> > > /Last 551 0 R 
> > > /Title (��<null>L<null>I<null>S<null>T)
> > > /First 552 0 R 
> > > /Next 553 0 R 
> > > >> 
> > > endobj
> > > 
> > > __________________________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > > http://mailplus.yahoo.com
> > > 
> > > 
> > >
> >
> -------------------------------------------------------
> > > This SF.NET email is sponsored by:
> > > SourceForge Enterprise Edition + IBM + LinuxWorld
> > = Something 2 See!
> > > http://www.vasoftware.com
> > > _______________________________________________
> > > iText-questions mailing list
> > > [EMAIL PROTECTED]
> > >
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> > 
> > 
> >
> -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld =
> > Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to