THPDFViewer Rotation

以 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;