Click or drag to resize

PdfEncoderSave Method (Stream, AtalaImage, PdfCompressionType, ProgressEventHandler)

Creates a single page PDF file from the specified image and compression.

Namespace:  Atalasoft.Imaging.Codec.Pdf
Assembly:  Atalasoft.dotImage.Pdf (in Atalasoft.dotImage.Pdf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public int Save(
	Stream stream,
	AtalaImage image,
	PdfCompressionType compression,
	ProgressEventHandler progress
)

Parameters

stream
Type: System.IOStream
The stream to write the PDF file into. This stream must be seekable.
image
Type: Atalasoft.ImagingAtalaImage
The AtalaImage to encode.
compression
Type: Atalasoft.Imaging.Codec.PdfPdfCompressionType
The standard PDF compression to use on the image in the PDF.
progress
Type: Atalasoft.ImagingProgressEventHandler
The progress delegate. Can be set to null (Nothing in Visual Basic).

Return Value

Type: Int32
The number of bytes written to the output stream.
Exceptions
ExceptionCondition
CodecExceptionWhen segmentation algorithm is selected.
See Also