pdftools_sdk.pdf2_image.render_page_at_resolution
Classes
|
The image section mapping to render entire pages at a specific resolution |
- class pdftools_sdk.pdf2_image.render_page_at_resolution.RenderPageAtResolution(resolution: Resolution)[source]
Bases:
ImageSectionMapping
The image section mapping to render entire pages at a specific resolution
The entire PDF page is rendered into an image of the same size and the specified resolution.
For example, this mapping is suitable to create images of entire PDF pages.
- __init__(resolution: Resolution)[source]
- Parameters:
resolution (pdftools_sdk.geometry.units.resolution.Resolution) – The resolution of the output image.
- Raises:
ValueError – The resolution is smaller than 0.0 or greater than 10000.0.
- property resolution: Resolution
The resolution of the output image
Valid values are 0.0, 10000.0 or in between.
- Returns:
pdftools_sdk.geometry.units.resolution.Resolution