From 3315da329f1c3adff5ddc4871b3601369c45d24e Mon Sep 17 00:00:00 2001 From: rdrew Date: Tue, 27 Oct 2026 11:16:22 -0300 Subject: [PATCH] [nb] Edit: cli_commands.md --- cli_commands.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/cli_commands.md b/cli_commands.md index dc375d1..19d6a00 100644 --- a/cli_commands.md +++ b/cli_commands.md @@ -168,4 +168,26 @@ rclone copy file_location file_destination \ --log-file rclone.log \ --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)