HiQPdf Documentation

PdfDocumentAddDocument Method (Int32, PdfDocument, Int32, Int32, Boolean, Boolean, Boolean)

Quickly Create High Quality PDFs
Adds another document in this document starting at the given page index and optionally apply this document header and footer to the added document if the added document was loaded from external file or streams. The interactive features of the PDF documents loaded from external files or streams are disabled in the final document

Namespace:  HiQPdf
Assembly:  HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax

public void AddDocument(
	int startIndex,
	PdfDocument document,
	int from,
	int count,
	bool applyHeaderAndFooter,
	bool applyHeaderInFirstPage,
	bool applyFooterInFirstPage
)

Parameters

startIndex
Type: SystemInt32
The page index where to insert the document
document
Type: HiQPdfPdfDocument
The document to add
from
Type: SystemInt32
The index of the first page to copy from added document
count
Type: SystemInt32
The number of pages to copy
applyHeaderAndFooter
Type: SystemBoolean
Controls is the header and footer of this document are applied to the added document if the added document was loaded from external file or streams
applyHeaderInFirstPage
Type: SystemBoolean
Controls if the header is applied in first page of the added document
applyFooterInFirstPage
Type: SystemBoolean
Controls if the footer is applied in first page of the added document
See Also

Reference