Skip to content

pdf2png - command line program for Mac originally written by Evan Jones, which convert PDF pages to PNG image files via Cocoa/Quartz rendering engine.

Notifications You must be signed in to change notification settings

Dima-369/pdf2png-mac

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changes

  • echo out page count after all pages are converted for further usage in other scripts
  • use stable outputFileFormat with a -%d suffix

pdf2png

pdf2png is command line program for Mac originally written by Evan Jones, which convert PDF pages to PNG image files via Cocoa/Quartz rendering engine.

Build

$ make

or open pdf2png.xcodeproj with XCode.

Extra features since original implementation

  • Added --output option. issue #2
  • Added --transparent switch. Now it generates an image with white background by default, and one with transparent background with --transparent switch.
  • Now supports PDF files contains various sizes per page.
  • [bugfix] out of bounds exception on removeObjectAtIndex, if it is compiled as 64bit binary
  • Use stringWithUTF8String for UTF-8 command-line arguments.

Usage

pdf2png [options] file
    --dpi dpi       Specifies the resolution at which to export the pages
    --page page     Single page to export
    --transparent   Do not fill background white color, keep transparency from PDF.
    --output path   Specify output file path. This implies --page 1 if not specified. ( Without this option, PDFNAME-p1.png (example) is created on same directory )
    --help  Print this help message

About

pdf2png - command line program for Mac originally written by Evan Jones, which convert PDF pages to PNG image files via Cocoa/Quartz rendering engine.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 98.7%
  • Makefile 1.3%