The Easiest Place to Go Wrong with Image to PDF: Order
Converting a batch of images into one PDF isn't hard, but the order is often wrong — you shot them in sequence 1, 2, 3, but the output becomes 1, 10, 11, 2, 3. The problem lies in filename sorting rules. Master the sorting logic to make the PDF page order match your expectations.
Pitfalls of Filename Sorting
Numeric Sort vs. Lexicographic Order
Operating systems sort filenames in lexicographic order by default. So IMG1, IMG2, IMG10 becomes IMG1, IMG10, IMG2 — because lexicographic order compares character by character, and the second character of "10" is "0", which is smaller than "2".
That's why naming by 1, 2, 3...10 results in a jumbled order after conversion.
Solution: Zero-Padded Naming
Change filenames to equal-length numbers: IMG01, IMG02, ..., IMG10, IMG11. The lexicographic order will then be correct. Three-digit zero-padding IMG001 is suitable for hundreds of images.
Drag-and-Drop Sorting with a Tool
Good image-to-PDF tools support drag-and-drop reordering after upload, without relying on filenames. This is the most intuitive method and recommended as the first choice.
Steps to Convert with DocsAll
- Open the Image to PDF tool
- Batch upload images (multi-select or drag in)
- Drag to adjust order in the list, or sort by filename/time
- Set page orientation, margins, paper size
- Generate the PDF and download, flip through to confirm order
Order Control Tips
Sort by Shooting Time
If filenames have no pattern, sorting by shooting time (EXIF time) is closest to the actual sequence. This works well for burst-shot photos from a phone.
Upload in Groups
When there are many images, upload in groups: first upload Chapter 1's images and sort them; then upload Chapter 2's images to follow. Easier to manage than hundreds at once.
Single Page vs. Multiple Pages
- One image per page: most common, each image on its own page
- Multiple images per page: suitable for collecting small images, using the tool's layout feature
Pre-Conversion Preparation
Unify Orientation
When portrait and landscape shots are mixed, unify the orientation first. Good tools read EXIF orientation and auto-correct, but to be safe, flip through before converting.
Unify Size
Large size differences between images lead to inconsistent PDF page sizes. Set "fit to page" so each image fills a uniform-sized page for a tidy look.
Compress Images
If originals are tens of MB, the resulting PDF will be large. Use the Image Compression tool to reduce to a reasonable size first, then convert to PDF.
Common Issues
Order Still Jumbled
Check the tool's sorting settings — by filename, upload order, or time. Drag-and-drop sorting is most reliable; don't rely on auto-sorting.
Image Orientation Reversed
EXIF orientation info wasn't read. Switch to a tool that supports EXIF orientation, or use the Image Rotate tool to manually correct first.
PDF Too Large
Original images are too large. Compress images before conversion, or set image quality in the tool.
Summary
The essentials of image to PDF are "order" and "pre-processing." For order, prioritize drag-and-drop adjustment — don't gamble on filename sorting. For pre-processing, unify orientation, size, and volume so the resulting PDF is tidy and lightweight. The DocsAll Image to PDF tool processes in the browser — photos aren't uploaded, keeping your privacy secure.