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

Allow overriding File ID #180

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

wiktor-k
Copy link
Contributor

This change adds new PdfName - FILEID that can be used to override generated File ID (if encryption is not used). Overridden File ID allows deterministic creation of PDFs that is especially useful during tests.

Note: this change works and generates deterministic PDFs but I'm not sure if this is a right approach. If yes then I could add unit tests that utilize this property (if you think it's a good idea).

This change adds new PdfName - FILEID that can be used to override
generated File ID (if encryption is not used). Overridden File ID allows
deterministic creation of PDFs that is especially useful during tests.
@andreasrosdal andreasrosdal merged commit bef4ffc into LibrePDF:master Apr 15, 2019
@wiktor-k wiktor-k deleted the allow-overriding-fileid branch April 15, 2019 20:21
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.

2 participants