A utility for converting pdf to image formats with support for different outputs: directly to file, base64 or buffer.
Overall
score
97%
Base64 string output format
Input method usage
100%
100%
Base64 response type
100%
100%
Single page conversion
100%
100%
Multiple page conversion
100%
100%
Dimension configuration
100%
100%
Base64 result access
100%
100%
Buffer input (fromBuffer)
Uses fromBuffer
100%
100%
Configures width correctly
100%
100%
Preserves aspect ratio
100%
100%
Sets density
100%
100%
Configures output path
100%
100%
Configures filename
100%
100%
Calls convert method
100%
100%
Aspect ratio preservation with smart dimension handling
Uses fromPath method
100%
100%
Enables aspect preservation
100%
100%
Fixed-width implementation
100%
100%
Bounded dimensions implementation
100%
100%
Output configuration
100%
100%
Conversion execution
100%
100%
Image quality control (quality parameter)
Uses fromPath function
100%
100%
Configures quality parameter
100%
100%
Sets format option
100%
100%
Configures dimensions
100%
100%
Configures output location
100%
100%
Calls convert method
100%
80%
Returns metadata
100%
100%
Promise-based async operations
Uses fromPath function
66%
100%
Promise-based conversion
100%
100%
Concurrent processing
100%
100%
Async function signature
100%
100%
Error handling
100%
100%
Configuration options
100%
100%
Buffer output format
Uses fromPath method
100%
100%
Specifies buffer responseType
100%
100%
Handles BufferResponse structure
80%
100%
Calls convert method
100%
100%
Async/Promise handling
100%
100%
Image file output format
Uses pdf2pic import
100%
100%
PNG format conversion
100%
100%
JPEG format conversion
100%
100%
WebP format conversion
100%
100%
Output directory configuration
100%
100%
Convert all pages (-1 parameter)
Uses bulk method
100%
100%
Uses -1 parameter
100%
100%
Proper initialization
100%
100%
Configuration options
100%
100%
Promise handling
100%
100%
High-resolution print output (300+ DPI)
Uses fromPath function
100%
100%
Configures density option
100%
100%
Sets savePath option
100%
0%
Sets saveFilename option
100%
0%
Specifies PNG format
100%
100%
Converts first page
100%
100%
Page number validation (1-indexed)
Page validation logic
100%
100%
Uses fromPath method
100%
100%
1-indexed page handling
100%
100%
Buffer response type
100%
100%
Async conversion handling
100%
100%
Early validation
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-pdf2picTable of Contents