Re: [Podofo-users] trunk does not report correct number of annotations

2017-09-03 Thread zyx
On Wed, 2017-06-07 at 17:03 +, Mark Rogers wrote: > - At r1839 m_offsets.resize was only called if m_offsets needed to > grow > - At r1840 m_offsets.resize is always called which means it can > shrink the m_offsets table and wipe out existing objects Hi, I'm sorry for such a late respo

Re: [Podofo-users] trunk does not report correct number of annotations

2017-06-07 Thread Mark Rogers
The patch for ReadXRefSubsection in r1840 has broken PDFs that contain XRef subsections. - At r1839 m_offsets.resize was only called if m_offsets needed to grow - At r1840 m_offsets.resize is always called which means it can shrink the m_offsets table and wipe out existing objects For http://he

Re: [Podofo-users] trunk does not report correct number of annotations

2017-06-02 Thread zyx
On Fri, 2017-06-02 at 11:58 +0200, Florian Hänel wrote: > WARNING: There are more objects (4) in this XRef table than specified > in the size key of the trailer directory (1)! > WARNING: There are more objects (126) in this XRef table than > specified in the size key of the trailer directory (4)!

[Podofo-users] trunk does not report correct number of annotations

2017-06-02 Thread Florian Hänel
between 0.9.5 and trunk, podofo stopped reporting the correct number of annotations: #include #include "podofo/podofo.h" int main(int argc, char** argv) { PoDoFo::PdfMemDocument* doc = new PoDoFo::PdfMemDocument(); doc->Load("test2-annotated.pdf"); for(int pn = 0; pn < doc->GetPageCoun