ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
19 lines (18 loc) • 828 B
TypeScript
import { PDFPrintRange } from '../options/pdf-print-range';
/**
* Determines whether a given page index falls within the specified print range.
*
* @param pageIndex - Zero-based page index
* @param pageCount - Total number of pages in the document (used for validation context)
* @param range - The print range specification
* @returns true if the page should be printed
*/
export declare function isInPDFPrintRange(pageIndex: number, _pageCount: number, range: PDFPrintRange): boolean;
/**
* Counts how many pages fall within the specified print range.
*
* @param pageCount - Total number of pages in the document
* @param range - The print range specification
* @returns The number of pages that match the print range
*/
export declare function filteredPageCount(pageCount: number, range: PDFPrintRange): number;