DryCreations / pdfproject

Adapting starter code that uses itext7, into a program that can draw onto pdfs, and export files to pdf
1 stars 3 forks source link

Action 47: Allow user to open existing documents #39

Closed DryCreations closed 3 years ago

DryCreations commented 3 years ago

Added a button under File -> Open Document to open existing pdf documents

While testing this it has come to my attention that the exported pdf from itext7 is slightly malformed, likely the same issue here https://stackoverflow.com/questions/61364972/why-is-my-xref-table-corrupt-after-removing-or-adding-annotations

It is displayable by most pdf readers, however the one we use to display pdfs will not work. So we cannot reopen pdf's exported by our own application. To solve this it seems modifying itext7 code would be necessary. Or we would need some way to detect the malformed xref table and fix it when we read a file.

otherwise opening pdf's that are not malformed works fine.