🐛 Bug Description
The PDF Rotate & Flip interface lets users choose horizontal or vertical flips and updates the thumbnail preview, but the generated PDF applies only page rotation. The flip state is never used by the export routine.
🔄 Steps to Reproduce
- Go to: the PDF Rotate & Flip tool.
- Click on: upload and choose a PDF with asymmetric content, such as text near one edge.
- Expected Outcome: after choosing Flip Horizontal or Flip Vertical, the downloaded PDF has the same orientation shown in the preview.
- Actual Outcome: the preview changes, but the downloaded PDF remains unflipped.
✅ Expected Behavior
Horizontal and vertical flip selections should be applied to the exported page content, including when combined with rotation or a selected-page scope.
📸 Screenshots (if applicable)
Not applicable; handlePreviewAction updates currentFlippedH and currentFlippedV, but transformAndDownload only calls setRotation and never reads either flip value.
🛠️ Possible Fix (if known)
Implement page-content mirroring during export, with the necessary translated negative scale, and cover horizontal, vertical, combined, and selected-page transformations in regression tests.
📌 System Information
- Operating System: Any
- Browser/Device: Any supported browser; the discrepancy is in client-side export logic.
💡 Additional Context (if any)
The tool shows a success message after export, so the missing transform is not visible until the user opens the downloaded document.
🏆 Are you contributing under an open-source program?
GSSoC 2026 contributor.
🐛 Bug Description
The PDF Rotate & Flip interface lets users choose horizontal or vertical flips and updates the thumbnail preview, but the generated PDF applies only page rotation. The flip state is never used by the export routine.
🔄 Steps to Reproduce
✅ Expected Behavior
Horizontal and vertical flip selections should be applied to the exported page content, including when combined with rotation or a selected-page scope.
📸 Screenshots (if applicable)
Not applicable;
handlePreviewActionupdatescurrentFlippedHandcurrentFlippedV, buttransformAndDownloadonly callssetRotationand never reads either flip value.🛠️ Possible Fix (if known)
Implement page-content mirroring during export, with the necessary translated negative scale, and cover horizontal, vertical, combined, and selected-page transformations in regression tests.
📌 System Information
💡 Additional Context (if any)
The tool shows a success message after export, so the missing transform is not visible until the user opens the downloaded document.
🏆 Are you contributing under an open-source program?
GSSoC 2026 contributor.