Saves all pages of PDF document to Image file(s)

Namespace:  SautinSoft
Assembly:  SautinSoft.PdfFocus (in SautinSoft.PdfFocus.dll) Version: (


 C#  Visual Basic 
public int ToImage(
	string outFolder,
	string templateFileName,
	out string[] outputFileNames
Public Function ToImage ( _
	outFolder As String, _
	templateFileName As String, _
	<OutAttribute> ByRef outputFileNames As String() _
) As Integer


Full path to existing folder where to save images.
Template file name for image files.
array< String >[]()[] %
An array with paths of produced image files.

Return Value

0 - saving successfully
2 - can't create output file, check the output path
3 - saving failed, email to


To start the process, please download the most fresh version of PDF Focus .Net.

Before converting you may set various image properties using the property ImageOptions. For example, set:
  • Dpi - image resolution in dots per inch. Default value: 120
  • ImageFormat - format for produced images as standard ImageFormat. Default value: Png
  • ColorDepth - color depth or bit depth is the number of bits used to represent the color of a single pixel. Default value: 24 bit RGB

See Also