Get the PDF document after having it loaded. Usefull to get (for example) the number of pages of the document.
Get all pending conversions.
Convert the PDF to images according to the options provided.
Options respecting the PDFToIMGOptions interface. Duplicate page index will be removed. The whole document is taken into account if pages is undefined. Returns only the pages that have been converted.
Get the text content and the language of the document, page per page. Usefull if you want to render only some pages based on the text content (conversion can be CPU intensive).
Optional
pages: number[]The pages to get the content from. The whole document is taken into account if pages is undefined or empty.
Load the PDF with the options provided. Throws an error if the PDF load fails.
The local path of your file or a Buffer
Optional
options: PDFOptionsOptions respecting the PDFOptions interface
Resume all conversions processes after beeing paused. Returns all the converted images.
Get all the images that have been converted.