DocumentAppendDocument(Document, Int32, Int32, Boolean, Boolean, Boolean) Method

Appends a range of pages from the document given as parameter to the current document and optionally applies the current document header and footer to the appended document pages if the appended document was loaded from an external file or stream

Definition

Namespace: Winnovative
Assembly: WnvHtmlToPdf_NetCore (in WnvHtmlToPdf_NetCore.dll) Version: 18.0.0
C#
public void AppendDocument(
	Document doc,
	int fromPageIndex,
	int pageCount,
	bool enableHeaderAndFooter,
	bool drawHeaderOnFirstPage,
	bool drawFooterOnFirstPage
)

Parameters

doc  Document
The document to be appended
fromPageIndex  Int32
The page index in appended PDF document from where to start copying the pages
pageCount  Int32
The number of pages to append
enableHeaderAndFooter  Boolean
A flag indicating if the header and footer of the current document are also applied to the appended document pages
drawHeaderOnFirstPage  Boolean
A flag indicating if the header is drawn on first page of the appended document
drawFooterOnFirstPage  Boolean
A flag indicating if the footer is drawn on first page of the appended document

See Also