PdfPaintedImage.SaveAsPainted Method (String, PdfExtractedImageFormat)

Note: This API is now obsolete.

Saves the image as painted on a page to the file with the specified name using the specified image format.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
[ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Use SaveAsPainted(string, PdfPaintedImageSavingOptions) overload instead.")]
public void SaveAsPainted(
	string fileName,
	PdfExtractedImageFormat imageFormat
)
VB
<ObsoleteAttribute("This method is obsolete and will be removed in the next version of the library. Use SaveAsPainted(string, PdfPaintedImageSavingOptions) overload instead.")>
Public Sub SaveAsPainted ( 
	fileName As String,
	imageFormat As PdfExtractedImageFormat
)

Parameters

fileName
Type: System.String
Name of the file to save image to.
imageFormat
Type: BitMiracle.Docotic.Pdf.PdfExtractedImageFormat
The image format to use while saving the image.

Remarks

This method always creates images with 72x72 ppi resolution.

This method transforms the Image using TransformationMatrix so the output image looks exactly like on a page in a PDF viewer with 72x72 ppi resolution.

The output image will have the same physical size as the image drawn on a PDF page.

See Also