mekentosj / podofo

PoDoFo is a library to work with the PDF file format. The name comes from the first letter of PDF (Portable Document Format). A few tools to work with PDF files are already included in the PoDoFo package. This repo is a fork of the code at http://svn.code.sf.net/p/podofo/code/podofo/trunk
GNU General Public License v2.0
53 stars 29 forks source link

bug in PdfString utf8 constructor #2

Open RobertWilbrandt opened 7 years ago

RobertWilbrandt commented 7 years ago

Creating a PdfString from utf8 fails with multibyte characters. A minimal example is creating a pdfstring from the utf8-string "iß". My guess for the reason is the +1 in the declaration of the sourceEnd variable in the "ConvertUTF8toUTF16" function in PdfString.cpp, but i had no time to validate that.