Skip to content

Document default and XMP metadata handling more properly #3243

Open
@j-t-1

Description

@j-t-1

pypdf/pypdf/_writer.py

Lines 225 to 230 in b7ae2e5

self._header = b"%PDF-1.3"
self._info_obj = self._add_object(
DictionaryObject(
{NameObject("/Producer"): create_string_object("pypdf")}
)
)

The Producer key (optional and deprecated in PDF 2.0) has value:

If the document was converted to PDF from another format, the name of the PDF processor that converted it to PDF.

pypdf is not converting it from another format to PDF, it is creating it for the first time.

xmp:CreatorTool entry in the document's metadata stream can be used to represent the creation tool of the document.

xmp:CreatorTool can be used instead.

Quotes from PDF 2.O specification, Table 349 — Entries in the document information dictionary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    nf-documentationNon-functional change: Documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions