pdftools_sdk.image2_pdf.profiles.archive
Classes
|
The profile for image to PDF/A conversion for archiving |
- class pdftools_sdk.image2_pdf.profiles.archive.Archive[source]
Bases:
Profile
The profile for image to PDF/A conversion for archiving
This profile is suitable for archiving images as PDFs.
- property conformance: Conformance
The PDF/A conformance of the output document
The supported PDF/A conformance are:
“PDF/A-1b”
“PDF/A-1a”
“PDF/A-2b”
“PDF/A-2u”
“PDF/A-2a”
“PDF/A-3b”
“PDF/A-3u”
“PDF/A-3a”
With level A conformances (PDF/A-1a, PDF/A-2a, PDF/A-3a), the properties
pdftools_sdk.image2_pdf.profiles.archive.Archive.alternate_text
andpdftools_sdk.image2_pdf.profiles.archive.Archive.language
must be set.Default value: “PDF/A-2b”
- Returns:
pdftools_sdk.pdf.conformance.Conformance
- property alternate_text: StringList
The alternate text describing the image
The alternate text provides a meaningful description of the images. For example, “This color image shows a small sailing boat at sunset”. This information can be used to read the document to the visually impaired.
The list must contain a description for each page of the input image document. For the conversion of
pdftools_sdk.image.single_page_document.SinglePageDocument
, a single description is sufficient. Forpdftools_sdk.image.multi_page_document.MultiPageDocument
, multiple descriptions may be required.Alternate text is required for PDF/A level A conformance. It is not advisable to add “dummy” tagging solely for the purpose of achieving level A conformance. Instead, for scanned text documents, the Conversion Service can be used to recognize the characters in the documents (OCR) and tag the image with the recognized structure and text. For other types of images, such as photos, logos or graphics, alternate text descriptions should be written manually by a user.
Default is empty list
- Returns:
pdftools_sdk.string_list.StringList
- property language: str | None
The language of the output PDF
The language code that specifies the language of the PDF and specifically its
pdftools_sdk.image2_pdf.profiles.archive.Archive.alternate_text
descriptions. Specifying the language is highly recommended for PDF/A level A conformance.The codes are defined in BCP 47 and ISO 3166:2013 and can be obtained from the Internet Engineering Task Force and the International Organization for Standardization.
If no code is set, the language will be specified as unknown.
Examples:
“en”
“en-US”
“de”
“de-CH”
“fr-FR”
“zxx” (for non linguistic content)
Default is None (unknown)
- Returns:
Optional[str]