[0.5.1] Split pages? #195

Closed
opened 2024-03-31 04:31:22 +00:00 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,
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 ```
Author

Thanks. I meant within a single PDF.

Thanks. I meant within a single PDF.
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?
Author

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

My mistake: I was using the wrong option in my PDF viewer.
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
No description provided.