Click or drag to resize
Pdftools logo

DocumentAssembler Constructor


Namespace: PdfTools.DocumentAssembly
Assembly: PdfTools (in PdfTools.dll) Version: 1.6.0+e1db8f4bf6125495a2d29513486ea3e61205c81b
Syntax
C#
public DocumentAssembler(
	Stream outStream,
	OutputOptions outOptions = null,
	Conformance conformance = null
)

Parameters

outStream  Stream
The stream to which the output PDF is written
outOptions  OutputOptions  (Optional)
The PDF output options, e.g. to encrypt the output document.
conformance  Conformance  (Optional)

The required conformance level of the PDF document. Adding pages or content from incompatible documents or using incompatible features will lead to a conformance error.

When using , the conformance is determined automatically, based on the conformance of the input documents used in the Append(Document, NullableInt32, NullableInt32, DocumentCopyOptions, PageCopyOptions) method and the requirements of the used features.

Exceptions
ExceptionCondition
LicenseExceptionThe license check has failed.
ArgumentExceptionAn invalid encryption was specified in outOptions.
IOExceptionUnable to write to the stream.
GenericExceptionA generic error occurred.
ArgumentNullExceptionif outStream is .
See Also