Skip to content

Latest commit

History

History
36 lines (27 loc) · 1.77 KB

File metadata and controls

36 lines (27 loc) · 1.77 KB

ConvertPDF2ImageRequest

Properties

NameTypeDescriptionNotes
file_base64strBase64 encoded PDF file. Required if file_url is not provided.[optional]
file_urlstrPublic HTTPS URL to a PDF file. Required if file_base64 is not provided.[optional]
formatstrOutput image format[optional] [default to 'png']
qualityintImage quality (1-100)[optional] [default to 85]
resolutionintImage resolution in DPI (72-600)[optional] [default to 150]
pagesstrPage number or range to convert. Use a single number (e.g. "1") or a range (e.g. "1-4"). Defaults to all pages.[optional] [default to 'all']
outputstrOutput format[optional] [default to 'base64']
namestrDocument name (max 120 characters). Auto-generated if not provided.[optional]

Example

frompdf_generator_api_client.models.convert_pdf2_image_requestimportConvertPDF2ImageRequest# TODO update the JSON string belowjson="{}"# create an instance of ConvertPDF2ImageRequest from a JSON stringconvert_pdf2_image_request_instance=ConvertPDF2ImageRequest.from_json(json)
# print the JSON string representation of the objectprint(ConvertPDF2ImageRequest.to_json())
# convert the object into a dictconvert_pdf2_image_request_dict=convert_pdf2_image_request_instance.to_dict()
# create an instance of ConvertPDF2ImageRequest from a dictconvert_pdf2_image_request_from_dict=ConvertPDF2ImageRequest.from_dict(convert_pdf2_image_request_dict)

[Back to Model list][Back to API list][Back to README]