Paper size transpose in Windows #167
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
img2pdf_console -h
provides this example:img2pdf --output out.pdf --pagesize A4^T --border 2cm:2.5cm *.jpg
That example will not work and produce such an error:
error: argument -S/--pagesize: width is not a floating point number and doesn't have a valid unit: A4T
The reason is that caret is an escape character in cmd. So, you have to use double quotes "A4^T". Please fix this example, or, better yet, use another character instead of caret.
I can easily put the "A4^T" in the example in double quotes so that it even works in the windows shell.
I'm not going to remove the
^T
notation as the caret character has a long history of indicating superscript and superscript T indicates the transpose for an even longer time.What I can do is to add another way to specify the transpose so that windows users do not have to remember that the caret character is the escape character and so that they do not have to put double quotes.
Do you have any idea for what such an alternate format could look like?
Maybe -T / --transpose-page.
That would be a new option. I'm looking for a way to tell the --pagesize argument that I want, lets say, A4 but not portrait (the default) but landscape instead.
Hard to think of anything suitable. Maybe A4_T.