Debenu Quick PDF logo

PDFiumPrintDocument

Rendering and printing

Version history

This function was introduced in Quick PDF Library version 14.11.

Description

Renders certain pages from the selected document to the specified printer using PDFium renderer.

Syntax

Delphi

function TDebenuPDFLibrary1811.PDFiumPrintDocument(PrinterName: WideString; 
  StartPage, EndPage, Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::PDFiumPrintDocument(PrinterName As String,
  StartPage As Long, EndPage As Long, Options As Long) As Long

DLL

int DPLPDFiumPrintDocument(int InstanceID, wchar_t * PrinterName, int StartPage,
  int EndPage, int Options)

Parameters

PrinterName The name of the printer to use for printing. This is the name that appears in the Windows Print Manager. Use the GetPrinterNames function to return a list of valid printers on the system. A value returned by the NewCustomPrinter function can also be used here.
StartPage The first page to print
EndPage The last page to print
Options Reserved for future use. Should always be set to 0.

Return values

0 The pages could not be printed, usually caused by the StartPage and EndPage parameters being out of range
1 The pages were printed successfully

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport