Skip to content

Conversation

@xelan
Copy link
Contributor

@xelan xelan commented Jun 3, 2024

  1. Please do not create a Pull Request without creating an issue first.

See #424

  1. Any change needs to be discussed before proceeding.

Allowing to edit the Creator may be useful e.g. for security to avoid disclosure of used tools or to fix invalid or problematic metadata strings.

  1. Please provide enough information for PR review.

Keywords can already be set via pdfcpu keywords, the dates and producer are apparently always set when the document is edited with pdfcpu properties. As far as I could see, Trapped should not be modified manually to avoid inconsistencies so just the Creator property can now be edited via pdfcpu properties add .

Overriding the CreationDate and ModDate is currently out of scope for this PR. That might also be useful, but require further modifications to the code base (and maybe a -force flag or so?).

Author, Subject and Title can already be edited with the current version of pdfcpu.

Tested on Debian 11, Debian 12 compiled with go1.22.1

  1. Fixes Editing infoDict metadata #424 (except date setting, should we open a new issue for that?)

Thank you very much, best regards
Andreas

Keywords can already be set via pdfcpu keywords, the dates and producer are always
set when the document is edited with pdfcpu properties.
As far as I could see, trapped should not be modified manually to avoid inconsistencies.
@xelan xelan force-pushed the feature/allow-edit-of-creator branch from ac269d9 to 5f560e5 Compare June 24, 2024 09:01
@hhrutter hhrutter merged commit 699a216 into pdfcpu:master Jun 30, 2024
@hhrutter
Copy link
Collaborator

I think we can allow setting the Creator.

@xelan
Copy link
Contributor Author

xelan commented Jul 1, 2024

Great, thanks 👍 😊

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.

Editing infoDict metadata

2 participants