adobe.pdfservices.operation.pdfjobs.params.export_pdf package
Submodules
adobe.pdfservices.operation.pdfjobs.params.export_pdf.export_ocr_locale module
- class adobe.pdfservices.operation.pdfjobs.params.export_pdf.export_ocr_locale.ExportOCRLocale(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Enum values representing different locales
Constructs a locale from a language code
- Parameters:
locale – language code
- BG_BG = 'bg-BG'
Represents “Bulgarian (Bulgaria)” locale
- CA_CA = 'ca-CA'
Represents “Catalan (Canada)” locale
- CS_CZ = 'cs-CZ'
Represents “Czech (Czech Republic)” locale
- DA_DK = 'da-DK'
Represents “Danish (Denmark)” locale
- DE_CH = 'de-CH'
Represents “German (Switzerland)” locale
- DE_DE = 'de-DE'
Represents “German (Germany)” locale
- EL_GR = 'el-GR'
Represents “Greek (Greece)” locale
- EN_GB = 'en-GB'
Represents “English (United Kingdom)” locale
- EN_US = 'en-US'
Represents “English (United States)” locale.
- ES_ES = 'es-ES'
Represents “Spanish (Spain)” locale
- ET_EE = 'et-EE'
Represents “Estonian (Estonia)” locale
- EU_ES = 'eu-ES'
Represents “Basque (Spain)” locale
- FI_FI = 'fi-FI'
Represents “Finnish (Finland)” locale
- FR_FR = 'fr-FR'
Represents “French (France)” locale
- GL_ES = 'gl-ES'
Represents “Galician (Spain)” locale
- HR_HR = 'hr-HR'
Represents “Croatian (Croatia)” locale
- HU_HU = 'hu-HU'
Represents “Hungarian (Hungary)” locale
- IT_IT = 'it-IT'
Represents “Italian (Italy)” locale
- IW_IL = 'iw-IL'
Represents “Hebrew (Israel)” locale
- JA_JP = 'ja-JP'
Represents “Japanese (Japan)” locale
- KO_KR = 'ko-KR'
Represents “Korean (Korea)” locale
- LT_LT = 'lt-LT'
Represents “Lithuanian (Lithuania)” locale
- LV_LV = 'lv-LV'
Represents “Latvian (Latvia)” locale
- MK_MK = 'mk-MK'
Represents “Macedonian (Macedonia)” locale
- MT_MT = 'mt-MT'
Represents “Maltese (Malta)” locale
- NB_NO = 'nb-NO'
Represents “Norwegian (Norway)” locale
- NL_NL = 'nl-NL'
Represents “Dutch (Netherlands)” locale
- NN_NO = 'nn-NO'
Represents “Norwegian Nynorsk (Norway)” locale
- PL_PL = 'pl-PL'
Represents “Polish (Poland)” locale
- PT_BR = 'pt-BR'
Represents “Portuguese (Brazil)” locale
- PT_PT = 'pt-PT'
Represents “European Portuguese” locale
- RO_RO = 'ro-RO'
Represents “Romanian (Romania)” locale
- RU_RU = 'ru-RU'
Represents “Russian (Russia)” locale
- SK_SK = 'sk-SK'
Represents “Slovak (Slovakia)” locale
- SL_SI = 'sl-SI'
Represents “Slovenian (Slovenia)” locale
- SR_SR = 'sr-SR'
Represents “Serbian (Serbia)” locale
- SV_SE = 'sv-SE'
Represents “Swedish (Sweden)” locale
- TR_TR = 'tr-TR'
Represents “Turkish (Turkey)” locale
- UK_UA = 'uk-UA'
Represents “Ukrainian (Ukraine)” locale
- ZH_CN = 'zh-CN'
Represents “Chinese (China)” locale
- ZH_HANT = 'zh-Hant'
Represents “Chinese (traditional)” locale
- get_export_ocr_locale()
- Returns:
Language code of the ExportOCRLocale
adobe.pdfservices.operation.pdfjobs.params.export_pdf.export_pdf_params module
- class adobe.pdfservices.operation.pdfjobs.params.export_pdf.export_pdf_params.ExportPDFParams(target_format: ExportPDFTargetFormat, *, ocr_lang: ExportOCRLocale = ExportOCRLocale.EN_US)
Bases:
PDFServicesJobParams
Parameters for exporting a source PDF file to a supported format using
ExportPDFJob
Constructs a new
ExportPDFParams
instance.- Parameters:
target_format (ExportPDFTargetFormat) – Target format to which the source PDF file will be exported; can not be None
ocr_lang (ExportOCRLocale) – Sets OCR Locale level to be used for Export PDF. (Optional, use key-value)
- get_ocr_lang()
- Returns:
Returns the OCR Locale to be used for Export PDF.
- Return type:
- get_target_format()
- Returns:
Returns the target format to which the source PDF file will be exported.
- Return type:
adobe.pdfservices.operation.pdfjobs.params.export_pdf.export_pdf_target_format module
- class adobe.pdfservices.operation.pdfjobs.params.export_pdf.export_pdf_target_format.ExportPDFTargetFormat(value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Supported target formats for
ExportPDFJob
Constructor.
- Parameters:
file_ext – file extension
- DOC = 'doc'
Represents “application/msword” media type
- DOCX = 'docx'
Represents “application/vnd.openxmlformats-officedocument.wordprocessingml.document” media type
- PPTX = 'pptx'
Represents “application/vnd.openxmlformats-officedocument.presentationml.presentation” media type
- RTF = 'rtf'
Represents “text/rtf” media type
- XLSX = 'xlsx'
Represents “application/vnd.openxmlformats-officedocument.spreadsheetml.sheet” media type
- get_file_ext()
Returns the file extension of this format.
- Returns:
file extension of this format