Skip to content

Does not handle PageMediaRotation metadata correctly #124

@paddatrapper

Description

@paddatrapper

A page with PageMediaRotation present is not correctly rotated in the output signatures. For example a PDF page with PageMediaRotation: 180 should be rotated and be 'upside-down' compared to the other page on the sheet, however this is not the case.

An example PDF is here, the first image should be rotated 180 degrees from the second
example.pdf

Rotation metadata:

$ pdftk example.pdf dump_data
InfoBegin
InfoKey: ModDate
InfoValue: D:20240920151132+01'00'
InfoBegin
InfoKey: Creator
InfoValue: pdftk-java 3.3.2
InfoBegin
InfoKey: CreationDate
InfoValue: D:20240920151132+01'00'
InfoBegin
InfoKey: Producer
InfoValue: itext-paulo-155 (itextpdf.sf.net - lowagie.com)
PdfID0: 3e9f715e2d911f184847747024ca4bc6
PdfID1: 80769e49515b507b26f9fe0dc2336d1e
NumberOfPages: 2
PageMediaBegin
PageMediaNumber: 1
PageMediaRotation: 180
PageMediaRect: 0 0 611.21 791.21
PageMediaDimensions: 611.21 791.21
PageMediaBegin
PageMediaNumber: 2
PageMediaRotation: 0
PageMediaRect: 0 0 611.21 791.21
PageMediaDimensions: 611.21 791.21

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions