Skip to content

ISCC - PDF Processing#

PDF handling module.

pdf_thumbnail(fp) #

Create a thumbnail from PDF document.

Parameters:

Name Type Description Default
fp str

Filepath to PDF document.

required

Returns:

Type Description
Image.Image

Thumbnail image as PIL Image object

pdf_meta_embed(fp, meta) #

Embed metadata into a copy of the PDF file.

Parameters:

Name Type Description Default
fp str

Filepath to source PDF file

required
meta IsccMeta

Metadata to embed into PDF

required

Returns:

Type Description
str

Filepath to the new PDF file with updated metadata