XPSToPdfConverterSettings Class
Initializes a new instance of the XPSToPdfConverterSettings class
Inheritance
System.Object
XPSToPdfConverterSettings
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.XPS
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public class XPSToPdfConverterSettings
Examples
//Create a new XPS to PDF converter.
XPSToPdfConverter converter = new XPSToPdfConverter();
//Create new XPS to PDF converter settings instance.
XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings();
//Enable enbed complete font.
settings.EmbedCompleteFont = true;
//Assign settings to XPS converter.
converter.Settings = settings;
//Convert the XPS file to PDF.
PdfDocument document = converter.Convert("input.xps");
//Save the PDF document.
document.Save("output.pdf");
//Close the PDF document.
document.Close(true);
'Create a new XPS to PDF converter.
Dim converter As New XPSToPdfConverter()
'Create new XPS to PDF converter settings instance.
Dim settings As New XPSToPdfConverterSettings()
'Enable enbed complete font.
settings.EmbedCompleteFont = True
'Assign settings to XPS converter.
converter.Settings = settings
'Convert the XPS file to PDF.
Dim document As PdfDocument = converter.Convert("input.xps")
'Save the PDF document.
document.Save("output.pdf")
'Close the PDF document.
document.Close(True)
Constructors
XPSToPdfConverterSettings()
Declaration
public XPSToPdfConverterSettings()
Properties
EmbedCompleteFont
Enable or disable embedding complete font
Declaration
public bool EmbedCompleteFont { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
By enabling this propety the size of the output PDF will be larger.
Examples
//Create a new XPS to PDF converter.
XPSToPdfConverter converter = new XPSToPdfConverter();
//Create new XPS to PDF converter settings instance.
XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings();
//Enable enbed complete font.
settings.EmbedCompleteFont = true;
//Assign settings to XPS converter.
converter.Settings = settings;
//Convert the XPS file to PDF.
PdfDocument document = converter.Convert("input.xps");
//Save the PDF document.
document.Save("output.pdf");
//Close the PDF document.
document.Close(true);
'Create a new XPS to PDF converter.
Dim converter As New XPSToPdfConverter()
'Create new XPS to PDF converter settings instance.
Dim settings As New XPSToPdfConverterSettings()
'Enable enbed complete font.
settings.EmbedCompleteFont = True
'Assign settings to XPS converter.
converter.Settings = settings
'Convert the XPS file to PDF.
Dim document As PdfDocument = converter.Convert("input.xps")
'Save the PDF document.
document.Save("output.pdf")
'Close the PDF document.
document.Close(True)