Hello,
I'm just trying to get a text into lines, and it always gives me zero lines.
I have the PdfString from utf-8. Using DrawText with that string works just
fine. Simply the GetMultiLineTextAsLines returns zero lines.
It runs "while( *pszCurrentCharacter )", and the first byte there is a '\0'
(due to the utf-16be
I imagine).
This is the rsText in gdb:
$4 = (const PoDoFo::PdfString &) @0x7fffffffcab0: {<PoDoFo::PdfDataType> = {
_vptr.PdfDataType = 0x7ffff7dc2e70, m_bImmutable = false},
static StringNull = {<PoDoFo::PdfDataType> = {_vptr.PdfDataType =
0x7ffff7dc2e70,
m_bImmutable = false}, static StringNull = <same as static member of an
already seen type>,
static s_pszUnicodeMarker = "\376\377", static s_pszUnicodeMarkerHex =
0x7ffff7b65a86 "FEFF",
static s_cPdfDocEncoding = <optimized out>, static m_escMap =
0x7ffff7ddbba0 "", m_buffer = {
m_pBuffer = 0x0}, m_bHex = false, m_bUnicode = false, m_sUtf8 = "",
m_pEncoding = 0x0},
static s_pszUnicodeMarker = <same as static member of an already seen type>,
static s_pszUnicodeMarkerHex = 0x7ffff7b65a86 "FEFF", static
s_cPdfDocEncoding = <optimized out>,
static m_escMap = 0x7ffff7ddbba0 "", m_buffer = {m_pBuffer = 0x616070},
m_bHex = false,
m_bUnicode = true, m_sUtf8 =
"Hola què tal com va tot? A veure si això parteix bé la maleïda línia.",
m_pEncoding = 0x0}
I'm using podofo 0.9.1 on linux-amd64.
Thank you,
Lluís.
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users