itext / i7j-rups

RUPS is an acronym for Reading and Updating PDF Syntax. RUPS is a tool built on top of iText® that allows you to look inside a PDF document and browse the different PDF objects and content streams.
Other
286 stars 34 forks source link

Feature request: Diff viewer #131

Open guustysebie opened 7 months ago

guustysebie commented 7 months ago

Hi all,

I like to propose a new feature for rups called diff viewer. This feature would allow the user to easily see binary differences of 2 PDF documents which can greatly help while debugging.

Let's take a look at the POC. image This view showcases the lines changed, in this case we didn't decompress the contentstreams so the only changes we see are the compressed binary changes and some offset/size/ creation date changes.

But if we check the decompress option we see the following lines have been added in green. image

So you can clearly see that some text has been added. This will also be the case when adding or changing other things in the document.

Features I like it to have:

Disclaimer:

  1. This is A POC it seems to work but the code is far from production ready
  2. It currently relies on my Personal diff library, I will opensource this one if this feature is accepted

Have any questions/extra features you want please let me know