Dear All, I am using podofo library in my iOS app, it works well in iOS7.0 where
as it crashes when I run on iOS10.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. Error: *PoDoFo encounter an error. Error: 16 ePdfError_NoEOFToken* * Error Description: No EOF Marker was found in the PDF file.* * Callstack:* * #0 Error Source: /Users/kopp/Downloads/podofo-0.9.0/src/base/PdfParser.cpp:209* * Information: Unable to load objects from file.* * #1 Error Source: /Users/kopp/Downloads/podofo-0.9.0/src/base/PdfParser.cpp:247* * Information: EOF marker could not be found.* * #2 Error Source: /Users/kopp/Downloads/podofo-0.9.0/src/base/PdfParser.cpp:1282* Can you help? Thanks. -- Thanks & Regards Sunil Aruru +91-9030525617.
------------------------------------------------------------------------------
_______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users