THPDFViewer Current View Printing
Dibuja o imprime con ajuste centrado y proporciones conservadas
Declaraciones
function HPDFViewerFitRect(const Bounds: TRect;
ContentWidth, ContentHeight: Integer): TRect;
function THPDFViewerModel.DrawCurrentView(Canvas: TCanvas;
const Bounds: TRect; DPI: Integer= 150): boolean;
function THPDFViewer.DrawCurrentView(Canvas: TCanvas;
const Bounds: TRect; DPI: Integer= 150): boolean;
function THPDFViewerModel.PrintCurrentView(Printer: TPrinter;
const DocumentTitle: string= ''; DPI: Integer= 300): boolean;
function THPDFViewer.PrintCurrentView(Printer: TPrinter;
const DocumentTitle: string= ''; DPI: Integer= 300): boolean;
Comportamiento
HPDFViewerFitRectdevuelve el mayor rectángulo centrado que conserva la relación de aspecto del origenDrawCurrentViewacepta cualquierTCanvasy límites propiedad de quien llama- La página activa y la
ViewRotationse conservan por la ruta de metafile vectorial PrintCurrentViewajusta el resultado a la página de impresora y opcionalmente asigna el título del trabajo de impresión- Un dibujo fallido aborta un trabajo de impresión activo antes de devolver o propagar una excepción
Ejemplo
DrawCurrentView PrintCurrentView