I ran this command:
uvx pdfly x2pdf *.jpeg -o output.pdf
The pdfly x2pdf command will convert a folder of images (organized like 0001.jpeg, 0002.jpeg, 0003.jpeg, etc.) into a pdf that is backwards where the 3rd jpeg is the 1st page in the pdf.
I think it's because this line will add the new_page at index 0 for every filepath and it ends up prepending instead of appending:
|
writer.insert_page(new_page) |
Environment
- Operating System: Fedora Linux 43
- Python version: 3.13.11
- pdfly version used: 0.5.1
I ran this command:
uvx pdfly x2pdf *.jpeg -o output.pdfThe pdfly x2pdf command will convert a folder of images (organized like 0001.jpeg, 0002.jpeg, 0003.jpeg, etc.) into a pdf that is backwards where the 3rd jpeg is the 1st page in the pdf.
I think it's because this line will add the new_page at index 0 for every filepath and it ends up prepending instead of appending:
pdfly/pdfly/x2pdf.py
Line 42 in 06f79b3
Environment