THPDFViewer Current View Printing

Draws or prints the current vector view with centred aspect-preserving fit

Declarations

function HPDFViewerFitRect(const Bounds: TRect; ContentWidth, ContentHeight: Integer): TRect;
function THPDFViewerModel.DrawCurrentView(Canvas: TCanvas; const Bounds: TRect; DPI: Integer= 150): boolean;
function THPDFViewerModel.PrintCurrentView(Printer: TPrinter; const DocumentTitle: string= ''; DPI: Integer= 300): boolean;

Behaviour

Example

PDFViewer.PrintCurrentView(Printer, 'Current PDF view', 300);