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

PDF: Please add properties "Subject", "Keywords", "Created", "Modified" and "Application" #1202

Closed
PeterCodar opened this issue Jun 17, 2022 · 3 comments
Milestone

Comments

@PeterCodar
Copy link

Is your feature request related to a problem? Please describe

Currenty, we can set this 3 PDF properties with Formats.PdfWriteDefines
Author
Producer
Title

Describe the solution you'd like

Please add this 5 PDF properties too:
Subject
Keywords
Created
Modified
Application

Describe alternatives you've considered

Write the properties with an external tool after the PDF is created.

Additional context

Example PDF created with LibreOffice and filled properties

Example PDF Properties.pdf

@dlemstra dlemstra added this to the 11.2.1 milestone Jun 19, 2022
@dlemstra
Copy link
Owner

I made some changes in ImageMagick yesterday and this will become available in the next release of Magick.NET:

PdfWriteDefines.CreationTime (you call this Created)
PdfWriteDefines.Creator (you call this Application)
PdfWriteDefines.Subject
PdfWriteDefines.Keywords
PdfWriteDefines.ModificationTime (you call this Modified)

@PeterCodar
Copy link
Author

PeterCodar commented Jun 19, 2022

Great. Thank you very much for this quick change.

The names are from the Adobe Reader properties:
PDF-Properties in Adobe Reader

@dlemstra
Copy link
Owner

I decided to use the names that are written to the document. Except for CreationDate and ModDate:

<</Title<FEFF005000440046002D005400690074006C0065>
/Author<FEFF005000440046002000460069007200730074006E0061006D006500200050004400460020004C006100730074006E0061006D0065>
/Subject<FEFF005000440046002D005300750062006A006500630074>
/Keywords<FEFF005000440046002D004B006500790077006F007200640031002C0020005000440046002D004B006500790077006F0072006400200032>
/Creator<FEFF005700720069007400650072>
/Producer<FEFF004C0069006200720065004F0066006600690063006500200037002E0033>
/CreationDate(D:20220617102355+02'00')>>

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