pdfcpu test for sample-flyer.pdf

← Back to pdfcpu

Input: sample-flyer.pdf

sample-flyer.pdf first page preview

content

scratch_dir="$(mktemp -d)"
trap 'rm -rf "$scratch_dir"' EXIT
./bin/pdfcpu_0.14.0_Linux_x86_64/pdfcpu extract -m content "sample-flyer.pdf" "$scratch_dir"
cat "$scratch_dir"/*_Content_page_*.txt >"sample-flyer--pdfcpu-go--content.txt"
rm -rf "$scratch_dir"
trap - EXIT

Output: sample-flyer--pdfcpu-go--content.txt

Loading preview…