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 the page range selected and that were examined for a nonzero /Rotate value |
FlattenedPageCount | Pages whose 90, 180 or 270 degree rotation was baked into the content streams and reset to zero |
TransformedAnnotationCount | Annotation rectangles remapped so that they stay within the rotated page's visible area |
TransformedDestinationCount | Link and outline destination geometry remapped once the rotation change was made |
TransformedStructureGeometryCount | Structure tree geometry entries adjusted to suit the new orientation |
Usage notes
- Fill it with
FlattenLoadedPageRotation; pages without a 90/180/270 rotation are counted inScannedPageCountalone - Flattening appends a compensating transform to each affected page, rewrites the page boxes and resets /Rotate to 0 so that viewers stop re-rotating on screen
- Compare
TransformedDestinationCountwith the document's link count where every clickable area has to survive the orientation change