Click or drag to resize
Pdftools logo

DocumentAssembler Constructor


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