Skip to content

-nf drops /Rotate: normalized pages render sideways #44

Description

@valandi

PdfFontNormalizer.normalize() builds the normalized page as
new PDPage(originalPage.getMediaBox()) and never calls setRotation(),
so a page with /Rotate 90 renders unrotated (sideways vs. its own baseline)
whenever -nf is enabled.

Pinned by @ignore'd tests in PdfFontNormalizerEdgeCaseTest
(normalized_page_preserves_rotation,
normalized_render_of_rotated_page_keeps_original_dimensions).

Found by code reading during the -nf test-corpus work
(docs/superpowers/specs/2026-08-10-nf-test-pdf-corpus-design.md, local);
no rotated page occurred in the 28-file real-PDF sample, so severity is
lower than the encoding defect.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions