Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Diff viewer #131

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

guustysebie
Copy link
Contributor

@guustysebie guustysebie commented Mar 16, 2024

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:

  • Allow content stream decompression
  • Allow ignoring xref table
  • Allow ignoring of embedded files and images and font's (big binary data in general)
  • Create a simple Cli interface for this so we can use it within iText development tools
  • Implement drag and drop for file opening

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant