Debenu Quick PDF logo

PrintPages

Rendering and printing

Version history

This function was introduced in Quick PDF Library version 9.14.

Description

Renders a page range list from the selected document to the specified printer.

Syntax

Delphi

function TDebenuPDFLibrary1811.PrintPages(PrinterName, PageRanges: WideString; 
  Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1811.PDFLibrary::PrintPages(PrinterName As String,
  PageRanges As String, Options As Long) As Long

DLL

int DPLPrintPages(int InstanceID, wchar_t * PrinterName, wchar_t * PageRanges,
  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.
PageRanges A list of pages to print, for example "1-10,12,14"
Options Use the PrintOptions function to obtain a value for this parameter

Return values

0 An error occurred
1 The pages were printed successfully

Copyright © 2020 Debenu. All rights reserved. AboutContactBlogNewsletterSupport