add_image_to_document method
add_image_to_document
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. |
See Also
- class
Document