Hi,
I am using podofo library in my iOS app, it works well in iOS6.0 where
as it crashes when I run on iOS7.0. Its exactly same as this issue
http://stackoverflow.com/questions/19970782/podofo-library-crash-in-ios-7-but-working-in-ios-6-and-earlier
It normally crashes on
PoDoFo::PdfMemDocument* doc = new PoDoFo::PdfMemDocument([path UTF8String]);
or
PoDoFo::PdfMemDocument* doc;
doc -> Load([path UTF8String]);
I have also tried to convert a solution there in the link above and my code
look like this
PoDoFo::PdfMemDocument *memDoc=new PoDoFo::PdfMemDocument([path UTF8String
]);
PoDoFo::PdfFileInputStream *fileInputStream=new PoDoFo::
PdfFileInputStream([path UTF8String]);
char *srcBuffer = new char[fileInputStream->GetFileLength()];
size_t srcLen = fileInputStream->GetFileLength();
fileInputStream->Read(srcBuffer,srcLen);
PoDoFo::PdfInputDevice *inputDevice=new PoDoFo::PdfInputDevice([path
UTF8String]);
inputDevice->Read(srcBuffer, srcLen);
memDoc->Load(srcBuffer,srcLen); //Crashes here...
It crashes on Load.
Can you help?
Thanks.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users