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

RUPS 7.2.5 shows /Info dictionary even when none is present in the trailer #154

Open
petervwyatt opened this issue Jan 19, 2025 · 1 comment

Comments

@petervwyatt
Copy link

RUPS 7.2.5 shows in the tree view an Info dictionary even when none is present in the trailer (it also labels this "Modified" and uses an object number that matches trailer Size). It also shows a single entry for ModDate with the current date/time. This is very confusing at it doesn't match the actual PDF!

Image

@Eswcvlad
Copy link
Contributor

Hmm, done some digging on this.

In 7.2.5 with the older iText version this is pretty much the case, as it updates ModDate, when opening in a read/write mode. Which, in turn, creates the info dictionary, if it is missing. Though not quite sure, what is going on with the ID there...

But in master/develop now there is an opposite problem. Now RUPS doesn't show /Info, even if it is in the document, as since iText 8 there is more destructive trailer cleaning on open. It is, definitely, worse now, and I have a feeling this would not be that easy to fix. Well, at least without sacrificing editing UX in some way.

Thank you for bringing this up! I'll try to look into this.

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

No branches or pull requests

2 participants