Skip to content

Add metadata to PDF#83

Merged
vilcans merged 2 commits into
vilcans:masterfrom
PeterNerlich:pdf_metadata
Apr 6, 2026
Merged

Add metadata to PDF#83
vilcans merged 2 commits into
vilcans:masterfrom
PeterNerlich:pdf_metadata

Conversation

@PeterNerlich
Copy link
Copy Markdown
Contributor

@PeterNerlich PeterNerlich commented Apr 3, 2026

This PR writes common PDF metadata as specified in the title page information:

  • Title
  • Subject
  • Author
  • Keywords
  • Lang

I wanted to just write everything in the title page as custom metadata, but that would require some light hacking of reportlab

@vilcans
Copy link
Copy Markdown
Owner

vilcans commented Apr 3, 2026

That's useful! Though I didn't find official documentation from Adobe or Reportlab about what the metadata fields are, but Google's AI said:

  • Creator: The software or application used to create the original document (e.g., Microsoft Word, Google Docs).
  • Producer: The tool used to convert the document into a PDF (e.g., Acrobat Distiller).

So, I think those two fields should not be included. Both these fields are supposed to be name of software, while in the metadata of a screenplay you'd expect them to refer to people.

@PeterNerlich
Copy link
Copy Markdown
Contributor Author

Yes, that's reasonable. I removed those

@vilcans vilcans merged commit ad16c5f into vilcans:master Apr 6, 2026
3 checks passed
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