How to Fix Slight PDF Rotation in Microsoft Lens for iOS
Question details
The user needs to resolve an issue where scanned documents exported as PDFs are slightly rotated, despite appearing straight during capture.

- Product
- Microsoft Lens
- Device & OS
- iOS
- Scenario
- Scanning physical documents using the 'Document' capture mode and uploading the resulting PDF to OneDrive.
- Observed behavior
- When viewed on a computer, the exported PDF file is noticeably rotated, whereas exporting the exact same scan as a JPEG works correctly without rotation.
Ensure your iPhone camera lens is clean and try placing the document on a highly contrasting, flat background to improve the app's automatic edge detection accuracy.
Update App and Report the Export Bug
Verify if the issue is a software bug by updating your system and comparing different export formats.
Since the issue isolatedly affects PDF outputs and not JPEGs, it is likely a software processing bug within Microsoft Lens's PDF conversion engine on specific iOS devices.
Open the iOS App Store, search for Microsoft Lens, and tap 'Update' to ensure you are running the latest version with recent bug fixes.
Go to Settings > General > Software Update on your iPhone to verify that your operating system is up to date.
Open Microsoft Lens, switch to 'Document' mode, and carefully align the physical document with the on-screen framing guide before tapping the shutter button.
Save the captured scan simultaneously as a PDF and a JPEG to your OneDrive account. Open both files on your computer to verify if the rotation persists strictly on the PDF file.
If the issue exclusively affects PDFs, use the feedback or support option within the Microsoft Lens settings to report the bug. Include your device model, Lens version, capture mode, and sample files to help developers issue a patch.

Workaround: Export as JPEG and Convert to PDF
Bypass the Lens PDF processing bug entirely by saving your scans as images and converting them manually.
Scan Documents to Perfect PDFs Using WPS Office
If Microsoft Lens continues to produce rotated PDFs, you can bypass the issue entirely by using the built-in Document Scanner in the WPS Office mobile app to capture, adjust, and export perfectly straight PDFs directly to your phone or cloud storage.
- 1. Launch WPS Office: Open the WPS Office app on your iOS or Android device.
- 2. Access the Scanner Tool: Tap the '+' (Add) button at the bottom of the home screen and select 'Scanner' or 'Scan to PDF'.
- 3. Capture the Document: Point your camera at the document. Allow the app to auto-detect the edges, then tap the shutter button to capture the scan.
- 4. Adjust Boundaries: Use the crop handles to ensure the document boundaries are perfectly aligned and straight, then tap 'Done'.
- 5. Export as PDF: Tap 'Export to PDF' to save your perfectly straight document to your device or cloud storage.

Frequently Asked Questions
Why does Microsoft Lens rotate my PDF scans but not JPEGs?
This is typically caused by a processing glitch in the app's PDF generation engine. The perspective correction or auto-cropping metadata applied during capture fails to translate perfectly into the PDF wrapper, whereas standard image formats like JPEG bake the pixel adjustments directly into the file.
Can I manually fix the rotation of a PDF after it has been exported?
Yes. If your exported PDF is slightly rotated, you can open it in a PDF editor like WPS Office or Adobe Acrobat, navigate to the page management tools, and apply a custom or slight rotation adjustment to straighten the page before saving it.
Is there a way to turn off auto-crop in Microsoft Lens?
While you cannot completely disable the edge detection engine in Document mode, you can manually adjust the crop handles after taking the photo. Ensuring the crop boundaries perfectly match the physical document can sometimes prevent the app from auto-rotating the final output.
What are the best alternatives to Microsoft Lens for iOS?
If you consistently face export bugs, you can try alternative mobile scanning solutions such as the built-in iOS Notes scanner, WPS Office's integrated document scanner, or Adobe Scan. These apps offer reliable edge detection and seamless PDF generation without arbitrary rotation issues.




