THPDFViewer 旋轉

以 90 度的步階旋轉顯示的頁面與 Viewer 模型快照,而不變更 PDF 頁面字典

宣告

property ViewRotation: Integer;
procedure RotateClockwise;
procedure RotateCounterClockwise;
procedure ResetViewRotation;
procedure ApplyViewRotation(Bitmap: TBitmap);

使用說明

範例

PDFViewer.RotateClockwise;
Snapshot := PDFViewer.Model.CreateCurrentPageSnapshot(150);
try
  Snapshot.SaveToFile('rotated-page.bmp');
finally
  Snapshot.Free;
end;
PDFViewer.ResetViewRotation;