PDF.Metadata

class Metadata

Optional metadata to be passed into the PDF factory function.

Methods

__init__

Overloaded function.

Attributes

fAuthor

The name of the person who created the document.

fCreator

If the document was converted to PDF from another format, the name of the conforming product that created the original document from which it was converted.

fEncodingQuality

Encoding quality controls the trade-off between size and quality.

fKeywords

Keywords associated with the document.

fPDFA

If true, include XMP metadata, a document UUID, and sRGB output intent information.

fProducer

The product that is converting this document to PDF.

fRasterDPI

The DPI (pixels-per-inch) at which features without native PDF support will be rasterized (e.g.

fStructureElementTreeRoot

An optional tree of structured document tags that provide a semantic representation of the content.

fSubject

The subject of the document.

fTitle

The document's title.

Methods

Metadata.__init__(*args, **kwargs)

Overloaded function.

  1. __init__(self: skia.PDF.Metadata) -> None

  2. __init__(self: skia.PDF.Metadata, arg0: dict) -> None

Attributes

Metadata.fAuthor

The name of the person who created the document.

Metadata.fCreator

If the document was converted to PDF from another format, the name of the conforming product that created the original document from which it was converted.

Metadata.fEncodingQuality

Encoding quality controls the trade-off between size and quality. By default this is set to 101 percent, which corresponds to lossless encoding. If this value is set to a value <= 100, and the image is opaque, it will be encoded (using JPEG) with that quality setting.

Metadata.fKeywords

Keywords associated with the document. Commas may be used to delineate keywords within the string.

Metadata.fPDFA

If true, include XMP metadata, a document UUID, and sRGB output intent information. This adds length to the document and makes it non-reproducable, but are necessary features for PDF/A-2b conformance

Metadata.fProducer

The product that is converting this document to PDF.

Metadata.fRasterDPI

The DPI (pixels-per-inch) at which features without native PDF support will be rasterized (e.g. draw image with perspective, draw text with perspective, …) A larger DPI would create a PDF that reflects the original intent with better fidelity, but it can make for larger PDF files too, which would use more memory while rendering, and it would be slower to be processed or sent online or to printer.

Metadata.fStructureElementTreeRoot

An optional tree of structured document tags that provide a semantic representation of the content. The caller should retain ownership.

Metadata.fSubject

The subject of the document.

Metadata.fTitle

The document’s title.