GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricing

    Show / Hide Table of Contents

    XpsSaveOptions Class

    Namespace:
    GemBox.Pdf
    Assembly:
    GemBox.Pdf.dll

    Represents options for saving to XML Paper Specification file format.

    • C#
    • VB.NET
    public sealed class XpsSaveOptions : SaveOptions
    Public NotInheritable Class XpsSaveOptions
        Inherits SaveOptions
    Inheritance:
    System.Object
    SaveOptions
    XpsSaveOptions

    Constructors

    XpsSaveOptions()

    Initializes a new instance of the XpsSaveOptions class.

    • C#
    • VB.NET
    public XpsSaveOptions()
    Public Sub New

    Properties

    Dpi

    Gets or sets the resolution (dots or pixels per inch) at which PDF device-dependent features, such as zero stroke width or rasterized shading, should be resolved.

    Default value is System.Double.NaN, which means that component specific default value will be used (currently 300).

    • C#
    • VB.NET
    public double Dpi { get; set; }
    Public Property Dpi As Double
    Property Value
    System.Double

    The resolution (dots or pixels per inch) at which PDF device-dependent features, such as zero stroke width or rasterized shading, should be resolved.

    Remarks

    This property controls the quality of PDF device-dependent features in the XPS file. Larger value results in better-quality PDF device-dependent features but might increases the file size and execution time.

    Using this property you basically specify the DPI of the display device on which the XPS file will be viewed and for which PDF device-dependent features present in the file should be optimized for without losing any perceived quality.

    Exceptions
    System.ArgumentOutOfRangeException

    Value is not greater than 0.

    RenderingMode

    Gets or sets the rendering mode used when saving the content to an XML Paper Specification (XPS) file.

    • C#
    • VB.NET
    public RenderingMode RenderingMode { get; set; }
    Public Property RenderingMode As RenderingMode
    Property Value
    RenderingMode

    The rendering mode used when saving the content to an XML Paper Specification (XPS) file.

    Exceptions
    System.NotSupportedException

    The rendering mode is not supported because of the reasons explained in the exception's System.Exception.Message.

    Inherited Properties

    Image

    Gets the default saving options for image file format. Image will be saved in Bmp format.

    (Inherited from SaveOptions)

    Pdf

    Gets the default saving options for Portable Document Format (PDF).

    (Inherited from SaveOptions)

    Xps

    Gets the default saving options for XML Paper Specification (XPS) format.

    (Inherited from SaveOptions)

    Examples

    Export to XpsDocument / DocumentViewer Control example
    Convert example

    See Also

    Xps
    Save(String, SaveOptions)
    Save(Stream, SaveOptions)
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.