Hi,

Hmm, all strings but the first are Unicode strings. So it is a problem in 
podofopdfinfo and not in PdfString. PdfString::GetUnicodeString() should be 
used if PdfString::IsUnicode() returns true. I wanted to add a method 
PdfString::GetStringUtf8 anyways that will return an UTF8 string in any case, 
this would fix the problem. But I don't have time to do it now, so you will 
either have to wait a few days, or check IsUnicode() before using your 
strings :(.

best regards,
        Dom

Am Dienstag, 15. Januar 2008 schrieb Philipp Wagner:
> Dominik Seichter schrieb:
> > Hello,
> >
> > In the current SVN version, PdfString::GetString() should always return
> > the raw (i.e. not hex encoded) version of the string. So decoding
> > yourself is not necessary anymore. IsHex() indicates only that PoDoFo
> > will hex encode the string when writing the string to the document. It
> > should be documented that this is mostly not interesting for users.
> >
> > If this does not work, this is a bug. Of course I am gonna fix it if you
> > found a problem.
>
> Well yes, then I've found a bug :-)
>
> Have a look at the annotations of this document:
> http://philipp-wagner.com/temp/bug-podofo-hexstring.pdf
> (the problem is visible when reading the annotations with podofopdfinfo)
> The first annotation is a regular string "( teststring )", the others
> are hex-encoded and should be decoded. Acrobat Reader displays all of
> them correctly.
>
> Philipp



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
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/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to