Replies: 4 comments 6 replies
-
Hi @hwine Thank you for reaching out! That would be a very welcome addition 🙂 Regarding the UX, maybe we could have a
What do you think about this @hwine? Note that we already rotate pages in |
Beta Was this translation helpful? Give feedback.
-
@Lucas-C I've got it basically working in my fork, but have a few questions about argument processing. I'll push to a draft PR soonish, but wanted to get this question asked. A number of your examples in this discussion thread implied that the Personally, I prefer to neither default to overwrite nor default to STDOUT (for binary formats). Which of the 3 approaches would you want for the new Current handling of "--output" option$ for cmd in extract-images 2-up cat booklet rm meta pagemeta extract-text compress uncompress update-offsets x2pdf extract-annotated-pages rotate; do echo $cmd; pdfly $cmd --help | grep -- --output | sed -r 's/\s*\|\s*//'; done
extract-images
2-up
cat
* --output -o PATH [default: None] [required]
booklet
rm
* --output -o PATH [default: None] [required]
meta
--output -o [jsontext] output format [default: text]
pagemeta
--output -o [jsontext] output format [default: text]
extract-text
compress
uncompress
update-offsets
--output -o PATH [default: None]
x2pdf
* --output -o PATH [default: None] [required]
extract-annotated-pages
--output -o PATH Output PDF file. Defaults to 'input_pdf_annotated'.
rotate
* --output -o PATH [default: None] [required]
$ |
Beta Was this translation helpful? Give feedback.
-
@Lucas-C Another change I made is I extended the |
Beta Was this translation helpful? Give feedback.
-
My turn for "sorry for the delay" 😬 I'm starting to have less time, so want to get what I have up for review. See notes in the PR for actual status. I just pushed a PR #128, where further comments should go. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It's amazing how much I've used
pdfly
without noticing it did not have support for rotating pages. 😁. Recently I did, and coded a short script to do the job (use case below), also usingpypdf
to do the real work. The rotation is actually trivial -- what is a challenge is figuring a good UX for it.I ended up with some bash 1-liners to:
pdfly
pdfly
If this feature would be of interest, I'd be happy to do a PR -- after discussing the UX options, of course. (Please indicate if you'd prefer the UX discussion in "discussions" or as an "issue" -- assuming you're interested.)
A use case for rotation
I've recently started to use paperless-ngx for personal use which works great with my scanner except for 1 case:
To take advantage of the OCR capabilities of paperless, I need to present a PDF with all the pages right-side-up. As indicated above, this can be done manually, if one is comfortable with the command line. It would be a much nicer UX if
pdfly
could do it in one pass.Beta Was this translation helpful? Give feedback.
All reactions