#6221·sumatrapdf

Mirror (flip) the page view horizontally and print mirrored

Author: kjkCreated Sep 19, 2026Updated Sep 19, 2026
Labelsprinting

Split out of #1009 (originally requested by @grappas, 2018; details from the forum thread https://forum.sumatrapdfreader.org/t/additional-functionality/1117).

Ask

Add a way to mirror (flip) the displayed page horizontally, i.e. around the vertical axis so left becomes right, and to print it mirrored. Flipping vertically was mentioned as a possible companion option.

This is about flipping graphics, not about RTL text. Existing rotation (90/180/270) doesn't cover it: no rotation produces a mirror image.

Who needs it and why (from the forum thread)

  • Technical drawings: CAD output sometimes has an inverted projection; mirroring in the viewer is faster than regenerating the drawing.
  • CNC / lathe programming: aligning a workpiece for machining both sides needs the drawing seen from the other side.
  • Pad printing: a mirrored image is needed to make transparency clichés / printing plates.
  • Automotive: coolant-hose index marks appear "inverted" on the drawing compared to the part.
  • Poorly edited scanned technical drawings (TIFF), where the source can't easily be fixed.

Scope

  • View: a toggle (menu + command, e.g. CmdToggleMirrorHorizontal) that flips the rendered page. Should compose with the existing rotation and survive zoom/scroll like rotation does. Probably per-tab state, not saved in the file state unless rotation is.
  • Print: honor the flip when printing, both whole pages and a rectangular selection (see #6222). Since printing already goes through the same rendering path with a transform, this is mostly applying a flip matrix.
  • Optionally a vertical flip as a second toggle.

Implementation notes

  • Rendering is engine->Transform()/render with a zoom and rotation; a mirror is an extra scale(-1, 1) in that matrix plus fixing up the page origin. DisplayModel already carries rotation per model, so a mirror flag next to it, threaded through CvtToScreen/CvtFromScreen (selection and link hit-testing must still work while mirrored), the render cache key and Print.cpp is the likely shape.
  • @GitHubRulesOK noted a workaround today: select a rectangle, save the selection as an image, flip it in an image editor, print that. The request is to skip the round trip.

Refs #1009.

Source: sumatrapdfreader/sumatrapdf