On Sat, 2016-11-26 at 11:29 +0530, sunil kumar wrote:
>    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

        Hi,
first of all, what is your PoDoFo version, please? The svn trunk line
numbers do not match the callstack you provided.

The second, PoDoFo *did not* crash. A crash is way different from an
exception throw. The error is (more or less?) self explanatory, the
PoDoFo failed to find an EOF marker in the provided PDF file. Could you
verify that the file you give it contains an %%EOF token at the end of
the file? If it does, then it seems like there failed a seek to the end
of the file, in PdfParser::CheckEOFMarker(). I would attach a debugger
to this function and verify whether the Seek() call succeeded, whether
the call to m_device.Device()->Tell() returns the position just before
the "%%EOF" token (quotes for clarity only). Also check what was read
into the pszBuff after the Read() call and whether m_device.Device()-
>Eof() returns true.

It's quite unlikely that the stream search handling would be broken in
iOS 10.0, but who knows.

        Bye,
        zyx
-- 
http://www.litePDF.cz                                 i...@litepdf.cz

------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to