My app is working pdf, annotating etc...
So, most of the docs are ok, but some of them becomes broken.
For example, i've added a new XObject (image) to the first page of doc and incrementally updated the document.
All works fine, readers show that image, no broken structures etc...
I've added an image to the second page and do the incremental update.
Now, reader shows that first page is broken, but second and other pages are ok. The image is visible on page two.
I know i can do something wrong with second update. But can't find exactly whats going wrong. Other docs works fine using the same logic for incremental updates.
My question is, there is some tools for pdf docs to catch that issues?