Click or drag to resize

PdfImageContentSave(String) Method

Saves the image content to a file with the specified path. Path must include file extension.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.1.20
Syntax
public void Save(
	string path
)

Parameters

path  String
The path to which to save the image content.
Exceptions
ExceptionCondition
ArgumentExceptionIf file extension is not specified or not supported. If file extension is not recognized, use Save(String, ImageSaveOptions) method overload instead.
Remarks
File extension that is extracted from the path is used to create the appropriate ImageSaveOptions class instance that is then passed to the Save(String, ImageSaveOptions) method.

Following file extensions are supported:

  • Portable Network Graphics: .png
  • Joint Photographic Experts Group: .jpeg, .jpg
  • Bitmap: .bmp
  • Tagged Image File Format: .tiff, .tif
  • Graphics Interchange Format : .gif
See Also