evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
A utility that converts all pages of a PDF document to image files without needing to know the total page count in advance.
Converts an entire PDF document to individual image files, automatically detecting the total number of pages.
/**
* Converts all pages of a PDF document to image files.
*
* @param {string} pdfPath - The path to the PDF file to convert
* @param {Object} options - Configuration options
* @param {string} options.format - Output image format (default: 'png')
* @param {string} options.savePath - Directory to save images (default: './')
* @param {string} options.saveFilename - Base filename for output images (default: 'page')
* @returns {Promise<Array>} Array of conversion results, one per page
*/
async function convertAllPages(pdfPath, options = {});
module.exports = { convertAllPages };Provides PDF to image conversion capabilities with bulk page processing support.