Skip to main content

Create screenshots of PDF from list of files

Use attached p33per.sh script

- requires CutyCapt installed
- takes newline delimited list of urls as input file (first argument)
- to output other formats change the CutyCapt line for different tiles extensions and resolutions (default is 1920px x 1080px png)
- CutyCapt is bad at outputting PDFs, to output a proper PDF with imagemagic add --pdf after the input file (not before)
- rename CutyCapt to cutycapt depending on your distro
- if you don't have an x server running you can use xvfb-run, ie: xvfb-run --server-args="-screen 0, 1920x1080x24" ./p33per.sh urls --pdf
- if imagemagick convert complains about PDF security edit /etc/ImageMagick-6/policy.xml and comment out the policy for PDF


- example usage

xvfb-run --server-args="-screen 0, 1920x1080x24" ./p33per.sh urls --pdf