Click or drag to resize
Pdftools logo

DocumentAssembler Constructor


Namespace: PdfTools.DocumentAssembly
Assembly: PdfTools (in PdfTools.dll) Version: 1.4.0+fc8bb87ea2616e7f35d94e0588d333abae862a7a
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