![]() Ex:\n make_flyer \"path/to/inputpdf1.pdf\" \"path/to/inputpdf2.pdf\""'Įxample usage: make_flyer "path/to/inputpdf1.pdf" "path/to/inputpdf2.pdf"Įx usage: make_flyer "path/to/inputpdf.pdf" - Creates a landscape-side-by-side flyer version called "inputpdf-flyer.pdf" # "input_path_base.pdf" and the new "input_path_base-flyer.pdf"Īlias make_flyer_help='echo -e "Ex usage: make_flyer \"path/to/inputpdf.pdf\" - Creates a landscape-side-by-side flyer version called \"inputpdf-flyer.pdf\"\n *in your pwd* from a 1 or 2 pg input pdf called \"path/to/inputpdf.pdf\". # Delete the temporary 2-pg pdf, called "input_path_base-.pdf", thereby leaving only the original # (ie: in your `pwd` )!-NOT the location where temp_pdf is located! # Note that `pdfnup` places the output from this operation in the location from where you call this script # Lay out the temporary 2-pg pdf into a side-by-side 1-sided flyer to print creates "input_path_base-flyer.pdf" Pdfunite "$inputpdf" "$inputpdf" "$temp_pdf" # Convert a single 1-pg pdf into a temporary 2-pg pdf ![]() Input_path_base="$(echo "$inputpdf" | rev | cut -f 2-d '.' | rev)" pdf extension from the input path, while retaining the rest of the path # make_flyer "path/to/inputpdf1.pdf" "path/to/inputpdf2.pdf"įor inputpdf in "= CONVERTING PDF $loop_cnt OF $num_args =" # print half of the total number of pages. You get *2 copies* per print though, so just # rather just as a landscape-printed, flipped-on-short-edge bundle of pages # you get 2 pages per side of paper they do NOT print like booklets, but # - 5 pg input PDFs simply require half as much paper to print is all since # double-sided, flipped on short edge, x 2 copies. # - 3 and 4-pg input PDFs are converted to a single piece of paper, ![]() # more sense, since this function will otherwise unnecessarily create 2 # - **3 pg input PDFs**: using `pdfnup` directly in this case would make # (flip on short edge when printing double-sided), and also cut down the # - 2-pg input PDFs are converted to a 2-sided landscape, printable flyer # that you cut down the center to make 2 flyers. # - 1-pg input PDFs are converted to a 1-sided landscape, printable flyer # ("my/pdf/input-flyer.pdf") for each 1 or more pg input pdf Follow the installation instructions in the comments at the top of the file.Ĭopy and paste this bash function to the bottom of your ~/.bashrc file in order to get access to a simple and easy-to-use command make flyer: # Description: outputs a landscape-oriented flyer pdf New version: get an even better and more up-to-date version of the below script here: make_flyer.sh, from my eRCaGuy_dotfiles repo.
0 Comments
Leave a Reply. |