Click or drag to resize
Pdftools logo

ConverterConvertMultiple Method

Convert a list of images to a PDF document


Namespace: PdfTools.Image2Pdf
Assembly: PdfTools (in PdfTools.dll) Version: 1.0.0
Syntax
C#
public Document ConvertMultiple(
	DocumentList images,
	Stream outStream,
	Profile profile,
	OutputOptions outOptions = null
)

Parameters

images  DocumentList
The input image document list, each image containing one or more pages.
outStream  Stream
The stream to which the PDF is written.
profile  Profile

The profile defines the properties of the output document and how the images are placed onto the pages.

For details, see Profile.

outOptions  OutputOptions  (Optional)
The PDF output options, e.g. to encrypt the output document.

Return Value

Document

The resulting output PDF which can be used as a new input for further processing.

Note that, this object must be disposed before the output stream object (method argument outStream).

Exceptions
ExceptionCondition
LicenseExceptionThe license is invalid.
IOExceptionWriting to the output PDF failed.
CorruptExceptionAn input image document is corrupt and cannot be read.
GenericExceptionAn unexpected failure occurred.
ProcessingExceptionThe conversion failed.
ArgumentExceptionThe profile specifies invalid options.
ArgumentExceptionThe outOptions specifies document encryption and the profile PDF/A conformance, which is not allowed.
ArgumentNullExceptionif images is .
ArgumentNullExceptionif outStream is .
ArgumentNullExceptionif profile is .
See Also