Browse Source

[nb] Edit: cli_commands.md

master
rdrew 3 weeks ago
parent
commit
3315da329f
  1. 22
      cli_commands.md

22
cli_commands.md

@ -168,4 +168,26 @@ rclone copy file_location file_destination \
--log-file rclone.log \ --log-file rclone.log \
--log-level INFO --log-level INFO
# PDF sheetmusic commands
## check size
`pdfinfo filename.pdf`
## resize to letter
`gs -sDEVICE=pdfwrite \
-sPAPERSIZE=letter \
-dFIXEDMEDIA \
-dPDFFitPage \
-dNOPAUSE -dBATCH \
-sOutputFile=output.pdf input.pdf`
## batch resize to letter
`mkdir -p resized_music
for f in *.pdf; do
gs -sDEVICE=pdfwrite -sPAPERSIZE=letter -dFIXEDMEDIA -dPDFFitPage -dNOPAUSE -dBATCH -sOutputFile="resized_music/$f" "$f"
done`
> > > > > > > f99d1ed ([nb] Edit: cli_commands.md) > > > > > > > f99d1ed ([nb] Edit: cli_commands.md)

Loading…
Cancel
Save