When I try to save PDFDoc object using this function PDFDoc::savePageAs(GooString *name, int pageNo). Orignal pdf file become corrupted. And I could not able to save PDF page by page.
Are you saving the file over itself?
Yes, I am saving file over it. Can you please tell me that is there any way that I can save page by page after adding annotation because if I save document as a new one it tales much time. Thanks for your corporation in advance.
Don't save the file over itself, that doesn't work as well as saving to a new file. We'll accept patches to improve that issue but we aware it may not be a 5 minutes job.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/428.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.