Tag Info

New answers tagged

1

Ok, got it. The key to success is to explicitly specify paper size. Example, original PDF has DIN A4 page size, then pdfjam --a4paper --scale 0.5 ---offset "-7cm 0cm" -- inputfiles does the trick. I'm not sure why -x with x<10 didn't work before.


2

Why not remove the password temporary and print the resulting unsecure pdf with lpr: pdftk secure.pdf input_pw own output - | lpr If you don't want that this command is listed in bash command history: set +x history <commands> set -x history OR <whitespace><command> OR use a script (adapted from here): #!/bin/bash unset password ...


0

You can use the CLI of jpdftweak to extract bookmarks in CSV format: java -jar -Xmx512M jpdftweak.jar "file.pdf" -savebookmarks "bmarks.csv" /dev/null After validating and possibly modifying the bookmark data you could load it back into the PDF file with the following command: java -jar -Xmx512M jpdftweak.jar "file.pdf" -loadbookmarks "bmarks.csv" ...


1

You can use pdftk to extract data (in particular, bookmarks) from PDF files.


1

While putting my own signature commands into a shell script, I was looking for a way to interactively select the area where the signature should go. Luckily I found this question and the script of Emmanuel Branlard contains the idea on how to do it (with xv). I implemented the following points: use ImageMagicks display instead of xv use stdbuf -oL and the ...


0

The solution posted by Raphael is flawed: if you have an uneven number of pages, the last ones are just ignored. There it is an improved solution that works also with an uneven number of pages. Again, assumes that you have the number of pages per chunk in $pagesper and the filename of the source PDF in $file. number=$(pdfinfo -- "$file" 2> /dev/null | ...



Top 50 recent answers are included