[0.5.1] Split pages? #195

Closed
opened 1 month ago by Winfried · 5 comments

Hello,

As a new user, I might have missed that option in the help screen, but I didn't find how to tell img2pdf to split pages after each PNG instead of generating a single page PDF.

img2pdf -o test.pdf *.png

Cheers,

Hello, As a new user, I might have missed that option in the help screen, but I didn't find how to tell img2pdf to split pages after each PNG instead of generating a single page PDF. `img2pdf -o test.pdf *.png` Cheers,
josch commented 1 month ago
Owner
for f in *.png; do
    img2pdf -o "$(basename "$f" .png).pdf" "$f"
done
```sh for f in *.png; do img2pdf -o "$(basename "$f" .png).pdf" "$f" done ```
Poster

Thanks. I meant within a single PDF.

Thanks. I meant within a single PDF.
josch commented 1 month ago
Owner

Then I'm afraid I fail to understand your query. By default, img2pdf creates one page per input image. The input images are not lumped together into a single-page pdf. Can you describe in more detail what you see and what you expect to see instead?

Then I'm afraid I fail to understand your query. By default, img2pdf creates one page per input image. The input images are not lumped together into a single-page pdf. Can you describe in more detail what you see and what you expect to see instead?
Poster

My mistake: I was using the wrong option in my PDF viewer.

My mistake: I was using the wrong option in my PDF viewer.
Winfried closed this issue 1 month ago
josch commented 1 month ago
Owner

Okay, happy to hear that the problem solved itself. :)

Okay, happy to hear that the problem solved itself. :)
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#195
Loading…
There is no content yet.