A utility for converting pdf to image formats with support for different outputs: directly to file, base64 or buffer.
Overall
score
97%
A command-line utility that converts PDF documents to high-resolution images suitable for professional printing.
Create a tool that converts PDF files to print-ready image files with professional quality settings. The tool should:
print-ready.pngThe tool should accept two command-line arguments:
Example usage:
node convert.js document.pdf ./outputprint-ready.pngThe program should print the full path to the created file after successful conversion.
Given a PDF file at test-input.pdf and output directory ./test-output, the tool creates a high-resolution image at ./test-output/print-ready.png with 300 DPI resolution @test
Given a PDF file at sample.pdf and output directory ./images, the tool creates a high-resolution image at ./images/print-ready.png with at least 300 DPI resolution @test
@generates
Provides PDF to image conversion capabilities.
@satisfied-by
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