[Bug] pdfjam ERROR: --outfile cannot be a directory when input is stdin
Closed this issue · 8 comments
Wikinaut commented
I have no idea what the reason for this message is:
pdfjam-pocketmod 8.pdf
----
pdfjam: This is pdfjam version 3.03.
pdfjam: Reading any site-wide or user-specific defaults...
(none found)
pdfjam: Effective call for this run of pdfjam:
/usr/bin/pdfjam --outfile /dev/stdout -- 8.pdf 1-8
pdfjam: Calling /usr/bin/pdflatex...
pdfjam: Finished. Output was written to '/dev/stdout'.
----
pdfjam: This is pdfjam version 3.03.
pdfjam: Reading any site-wide or user-specific defaults...
(none found)
pdfjam: Effective call for this run of pdfjam:
/usr/bin/pdfjam --angle '180' --outfile /dev/stdout -- /dev/stdin 1,8,7,6
pdfjam: Calling /usr/bin/pdflatex...
pdfjam: Finished. Output was written to '/dev/stdout'.
----
pdfjam: This is pdfjam version 3.03.
pdfjam: Reading any site-wide or user-specific defaults...
(none found)
pdfjam: Effective call for this run of pdfjam:
/usr/bin/pdfjam --nup '4x2' --landscape --frame 'true' -- 8.pdf 2-5 /dev/stdin -
pdfjam: Calling /usr/bin/pdflatex...
pdfjam ERROR: --outfile cannot be a directory when input is stdin
Wikinaut commented
Apparently it was necessary to add --outfile
like in
pdfjam-pocketmod in.pdf --outfile out.pdf
Wikinaut commented
Apparently it was necessary to add --outfile
like in
pdfjam-pocketmod in.pdf --outfile out.pdf
Wikinaut commented
@DavidFirth shouldn't it work without ? The documentation is silent about it.
DavidFirth commented
Which documentation are you referring to, there?
Wikinaut commented
pdfjam --help
pdfjam-pocketmod --help
Instead of printing
pdfjam ERROR: --outfile cannot be a directory when input is stdin
you could better say
pdfjam ERROR: --outfile cannot be a directory when input is stdin / or --outfile option is missing, please define an outfile.
DavidFirth commented
Thanks! That's a good suggestion, and I'll add it as "to do" (in pdfjam --- note that pdfjam-pocketmod is no longer part of pdfjam, and is no longer supported by me).
Wikinaut commented
Yes, I know.
mgkurtz commented
There was seemingly now reason to require --outfile
when input is /dev/stdin
. One may just generate a name from it as in all other cases resulting in stdin-pdfjam.pdf
by default.