Fix PDF Page Orientation Instantly with PurePDF (merge-pdf)
Many PDFs come back from scanners or different sources with mixed or wrong page orientation (portrait vs. landscape). With PurePDF's merge-pdf tool you can correct orientations instantly — by rotating single pages, groups of pages, or an entire document — without re-exporting the source files.
This tutorial shows three ways to fix orientation quickly: Web UI, CLI, and API/SDK. Each method preserves quality and privacy, supports batch processing, and integrates seamlessly into workflows.
Why use PurePDF for orientation fixes
- Speed: Rotate pages instantly and reassemble documents in seconds.
- Privacy: Process locally or via PurePDF with secure uploads and no third-party tracking.
- Batch-ready: Fix entire folders or multiple documents in one operation using merge-pdf.
- Flexible: Web UI for quick tasks, CLI for scripting, and API/SDK for integration.
- No watermark: Output files are clean and production-ready.
Quick overview (what "orientation" means)
Orientation issues typically fall into three categories:
- Entire document rotated wrong (e.g., all pages landscape but should be portrait).
- Mixed orientations (some pages portrait, others landscape).
- Individual pages scanned upside down (180 degrees).
PurePDF's merge-pdf supports rotating by 90, 180, or 270 degrees on a per-page or per-range basis to correct all of the above.
Step-by-step: Fix orientation using PurePDF (numbered steps)
-
Inspect the PDF
- Open the file and note which pages need rotation. You can list pages or use a quick preview to spot wrong orientations.
-
Choose your method
- Web UI: Fast visual corrections.
- CLI: Scriptable, great for many files.
- API/SDK: Integrate into automation or server apps.
-
Web UI method
- Go to PurePDF and choose the merge-pdf tool.
- Upload your PDF(s) or drag & drop files into the window.
- Click the page thumbnails to rotate them (90° clockwise or counterclockwise) until every page is correct.
- Click "Merge" or "Apply" and download the corrected PDF.
-
CLI method (example)
- Rotate page 2 by 90°, page 3 by 180°, and merge into out.pdf:
bash
purepdf merge-pdf
--input file.pdf
--rotate 2:90 3:180
--output corrected.pdf
- Rotate all pages 90° clockwise:
bash purepdf merge-pdf --input file.pdf --rotate all:90 --output corrected.pdf
- API/SDK method (example JSON body for merge-pdf endpoint)
POST /v1/merge-pdf { "inputs": ["file1.pdf"], "operations": [ {"rotate": {"page": 2, "degrees": 90}}, {"rotate": {"page": "3-5", "degrees": 270}} ], "output": "corrected.pdf" }
- Verify and save
- Open the resulting PDF, scan pages briefly, and confirm the orientation is correct. If needed, re-run with adjusted rotation values.
Quick tips
- Tip 1: Use thumbnail view in the Web UI to rotate pages visually — it's the fastest for single documents.
- Tip 2: For bulk jobs, script the CLI commands. Use patterns like --rotate all:90 or range syntax (e.g., 5-10:180).
- Tip 3: If a scanned batch contains consistent orientation errors, rotate entire files instead of individual pages to save time.
- Tip 4: Keep backups of originals. PurePDF preserves originals unless you overwrite them intentionally.
- Tip 5: Combine orientation fixes with merge operations: merge multiple corrected PDFs into one final doc in the same step using merge-pdf.
Frequently Asked Questions (FAQs)
Q: Can I rotate only odd or even pages? A: Yes. Use page-range syntax in CLI or API (for example, --rotate 1-:90 for odd pages starting at 1 with step logic, or list pages explicitly). The Web UI allows selecting multiple thumbnails to rotate simultaneously.
Q: Will rotating pages affect text quality or searchable text layers? A: No. Rotation changes the page display orientation, not the underlying text or OCR layer. PurePDF preserves text layers and image quality during rotation.
Q: Can I automate orientation correction for hundreds of files? A: Absolutely. The CLI and API are designed for automation. Script the merge-pdf command to loop through folders and apply uniform rotations or dynamic rules.
Q: Is there any file size increase after rotation? A: Minimal. Rotation metadata is applied; content is not re-encoded unnecessarily. PurePDF optimizes output to avoid big file bloat.
Q: Are my files secure when using the web tool? A: Yes. PurePDF uses encrypted uploads and deletes files from servers per the privacy policy. For maximum control, use the local CLI or SDK.
PurePDF benefits recap
- Instant results: Rotate and merge in one fast step with merge-pdf.
- Flexible workflows: Web UI for manual fixes, CLI and API for automation.
- Professional output: No watermarks, preserved quality, and support for large batches.
- Privacy-first: Secure processing and options to run locally.
Fixing orientation doesn't have to be slow or manual. With PurePDF's merge-pdf tool you can correct pages, merge documents, and produce clean, print-ready PDFs in seconds — whether you're editing a single file or automating a large batch.
If you'd like, I can provide ready-to-run CLI scripts or an API snippet tailored to your folder structure or programming language. Tell me whether you prefer Bash, PowerShell, Python, or Node.js and I will generate it.