PDFium Component Docs

PageRotation プロパティ

この API エントリでは識別子、シグネチャ、コードブロック、PDF 用語を元の表記のまま保持します。
コンポーネント: TPdf  ·  ユニット: PDFium
Page-level property — rendering 時に current page に適用される rotation です (ro0 / ro90 / ro180 / ro270)

構文

property PageRotation: TRotation;

説明

rendering 時に current page に適用される rotation を返します (ro0 / ro90 / ro180 / ro270)。値は PDF の page dictionary から取り、親 node から継承された /MediaBox / /CropBox / /Rotate を解決した後のものです

PagePageRotationのように writer を示すプロパティ名でない限り読み取り専用です。読み取り専用プロパティへ代入しても効果はありません

座標と寸法は PDF ユーザースペースのポイントで報告されます。対象 DPI のピクセルに変換するには PointsToPixels(Value, DPI) or the equivalent helpers.

備考

if Pdf1.Active then
  Memo1.Lines.Add('PageRotation = ' + VarToStr(Pdf1.PageRotation));

関連項目

Page, UpdatePage, PageBox