Resources for answers in https://unix.stackexchange.com/a/767380/296692 and https://superuser.com/a/1826641/577463 .
This file was generated by:
curl -o "CS3210 Reference.pdf" "https://raw.githubusercontent.com/btzy/homepage/master/nus/CS3210%20Reference.pdf"
pdftk "CS3210 Reference.pdf" cat 1 output a.pdf
pdfcrop --margin '15 15 15 15' a.pdf a.pdf
qpdf --rotate=90 a.pdf --replace-input
pdfjam --paper a4paper a.pdf -o a.pdf
Reason: for a MS821 network printer, the generated a.pdf
file cannot be printed correctly -- some cropped parts is still visible.
As can be seen in printer user guide, the maximum resolution supported by this printer is 1200 DPI.
All commands are benchmarked with command time
, whose output format is
3.90user 1.19system 0:05.13elapsed 99%CPU (0avgtext+0avgdata 36240maxresident)k
0inputs+0outputs (0major+6015minor)pagefaults 0swaps
The elapsed time and maximum resident memory is reported.