THPDFRotationFlattenInfo Record
Counts scanned pages, flattened rotations, and transformed annotations, destinations, and structure geometry
Declaration
THPDFRotationFlattenInfo= record
ScannedPageCount: Integer;
FlattenedPageCount: Integer;
TransformedAnnotationCount: Integer;
TransformedDestinationCount: Integer;
TransformedStructureGeometryCount: Integer;
end;
Unit
HPDFDoc
Fields
| Field | Purpose |
|---|---|
ScannedPageCount | Pages selected by the page range and examined for a nonzero /Rotate value |
FlattenedPageCount | Pages whose 90, 180, or 270 degree rotation was baked into content streams and reset to zero |
TransformedAnnotationCount | Annotation rectangles remapped so they stay on the rotated page's visible area |
TransformedDestinationCount | Link and outline destination geometry remapped after the rotation change |
TransformedStructureGeometryCount | Structure tree geometry entries adjusted for the new orientation |
Usage notes
- Fill it with
FlattenLoadedPageRotation; pages without a 90/180/270 rotation are counted inScannedPageCountonly - Flattening appends a compensating transform to each affected page, rewrites page boxes, and resets /Rotate to 0 so viewers stop re-rotating on screen
- Compare
TransformedDestinationCountwith the document's link count when you need every clickable area to survive the orientation change