Paper size transpose in Windows #167

Closed
opened 11 months ago by soheday · 4 comments

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.

`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.
Owner

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?

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?
Poster

Do you have any idea for what such an alternate format could look like?

Maybe -T / --transpose-page.

> Do you have any idea for what such an alternate format could look like? Maybe -T / --transpose-page.
Owner

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.

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.
Poster

Hard to think of anything suitable. Maybe A4_T.

Hard to think of anything suitable. Maybe A4_T.
josch closed this issue 11 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: josch/img2pdf#167
Loading…
There is no content yet.