A utility for converting pdf to image formats with support for different outputs: directly to file, base64 or buffer.
Overall
score
97%
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.
@generates
/**
* 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.
Install with Tessl CLI
npx tessl i tessl/npm-pdf2picevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10