add_image_to_document method
Leave feedback
On this page
Change image quality and add image to document.
def add_image_to_document(self, data_dir, jpg_file_name, page_number, image_quality):
...
| Parameter | Type | Description |
|---|---|---|
| data_dir | str |
Specify the path to the input PDF file. |
| jpg_file_name | str |
The path to the JPG file. |
| page_number | int |
Page where the image will be inserted. |
| image_quality | int |
Set image quality from 1 to 100, 1 is the smallest resolution, 100 is the largest. |
- class
Document
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.