TK.SaveImageAsPDF Method

Save image as PDF file
Public Shared Function SaveImageAsPDF( _ 
ByVal imageFileName As String, _ 
ByVal outputFileName As String, _ 
Optional ByVal append As Boolean = false, _ 
Optional ByVal orientation As Integer = 1, _ 
Optional ByVal margin As String = null, _ 
Optional ByVal title As String = null, _ 
Optional ByVal subject As String = null, _ 
Optional ByVal author As String = null, _ 
Optional ByVal creator As String = null _ 
) As String
This language is not supported or no code example is available.
public static string SaveImageAsPDF( 
string imageFileName
string outputFileName
bool append = false, 
int orientation = 1, 
string margin = null, 
string title = null, 
string subject = null, 
string author = null, 
string creator = null 
)
This language is not supported or no code example is available.

Parameters

imageFileName
string

Source image file name

outputFileName
string

Output pdf file name

append
bool

Flag indicating whether should append image to output PDF file

orientation
int

0: Portrait and 1: Landscape

margin
string

Margin in Thickness format

title
string

Title

subject
string

Subject

author
string

Author

creator
string

Creator

Return Value

string

String containg error message or null on success

.NET Framework

Supported in: 4.6.2, 4.7

In this article

Definition