evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a tool that converts the first page of a PDF document into multiple image formats for different use cases.
Create a command-line tool that:
output directory with descriptive namesThe tool should accept the PDF path as a command-line argument and create the output directory if it doesn't exist.
/**
* Converts the first page of a PDF to multiple image formats
* @param {string} pdfPath - Path to the PDF file
* @param {string} outputDir - Directory to save the images
* @returns {Promise<Object>} Object containing paths to generated images
*/
async function convertToMultipleFormats(pdfPath, outputDir);Provides PDF to image conversion support.