Aspose::Page::XPS::XpsDocument class

XpsDocument class

Class incapsulating the main entity of XPS document that provides manipulation methods for any XPS element.

class XpsDocument : public Aspose::Page::Document,
                    public System::IDisposable

Methods

MethodDescription
Add(T)Adds a content element (Canvas, Path, or Glyphs).
AddCanvas()Adds a new canvas to the active page.
AddDocument(bool)Adds an empty document with default page size.
AddDocument(float, float, bool)Adds an empty document with the first page dimensions width and height .
AddGlyphs(System::String, float, System::Drawing::FontStyle, float, float, System::String)Adds new glyphs to the active page.
AddGlyphs(System::SharedPtr<XpsModel::XpsFont>, float, float, float, System::String)Adds new glyphs to the active page.
AddOutlineEntry(System::String, int32_t, System::SharedPtr<XpsModel::XpsHyperlinkTarget>)Adds an outline entry to the document.
AddPage(bool)Adds an empty page to the document with default page size.
AddPage(float, float, bool)Adds an empty page to the document with specified width and height .
AddPage(System::SharedPtr<XpsModel::XpsPage>, bool)Adds a page to the document.
AddPath(System::SharedPtr<XpsModel::XpsPathGeometry>)Adds a new path to the active page.
Assert()
CreateArcSegment(System::Drawing::PointF, System::Drawing::SizeF, float, bool, XpsModel::XpsSweepDirection, bool)Creates a new elliptical arc segment.
CreateCanvas()Creates a new canvas.
CreateColor(System::Drawing::Color)Creates a new color.
CreateColor(int32_t, int32_t, int32_t, int32_t)Creates a new color in sRGB color space.
CreateColor(int32_t, int32_t, int32_t)Creates a new color in sRGB color space.
CreateColor(float, float, float, float)Creates a new color in scRGB color space.
CreateColor(float, float, float)Creates a new color in scRGB color space.
CreateColor(System::String, const System::ArrayPtr<float>&)Creates a new color in ICC based color space.
CreateColor(System::SharedPtr<XpsModel::XpsIccProfile>, const System::ArrayPtr<float>&)Creates a new color in ICC based color space.
CreateFont(System::String, System::Drawing::FontStyle)Creates a new TrueType font resource.
CreateFont(System::SharedPtr<System::IO::Stream>)Creates a new TrueType font resource out of stream.
CreateGlyphs(System::String, float, System::Drawing::FontStyle, float, float, System::String)Creates new glyphs.
CreateGlyphs(System::SharedPtr<XpsModel::XpsFont>, float, float, float, System::String)Creates new glyphs.
CreateGradientStop(System::SharedPtr<XpsModel::XpsColor>, float)Creates a new gradient stop.
CreateGradientStop(System::Drawing::Color, float)Creates a new gradient stop.
CreateIccProfile(System::String)Creates a new ICC profile resource out of ICC profile file located at the iccProfilePath .
CreateIccProfile(System::SharedPtr<System::IO::Stream>)Creates a new ICC profile resource out of stream .
CreateImage(System::String)Creates a new image resource out of image file located at the imagePath .
CreateImage(System::SharedPtr<System::IO::Stream>)Creates a new image resource out of stream .
CreateImageBrush(System::SharedPtr<XpsModel::XpsImage>, System::Drawing::RectangleF, System::Drawing::RectangleF)Creates a new image brush.
CreateImageBrush(System::String, System::Drawing::RectangleF, System::Drawing::RectangleF)Creates a new image brush.
CreateLinearGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>>, System::Drawing::PointF, System::Drawing::PointF)Creates a new linear gradient brush.
CreateLinearGradientBrush(System::Drawing::PointF, System::Drawing::PointF)Creates a new linear gradient brush.
CreateMatrix(float, float, float, float, float, float)Creates a new affine transformation matrix.
CreatePath(System::SharedPtr<XpsModel::XpsPathGeometry>)Creates a new path.
CreatePathFigure(System::Drawing::PointF, bool)Creates a new path figure.
CreatePathFigure(System::Drawing::PointF, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>>, bool)Creates a new path figure.
CreatePathGeometry(System::String)Creates a new path geometry specified with abbreviated form.
CreatePathGeometry()Creates a new path geometry.
CreatePathGeometry(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathFigure>>>)Creates a new path geometry with specified list of path figures.
CreatePolyBezierSegment(System::ArrayPtr<System::Drawing::PointF>, bool)Creates a new set of cubic Bézier curves.
CreatePolyLineSegment(System::ArrayPtr<System::Drawing::PointF>, bool)Creates a new polygonal drawing containing an arbitrary number of individual vertices.
CreatePolyQuadraticBezierSegment(System::ArrayPtr<System::Drawing::PointF>, bool)Creates a new set of quadratic Bézier curves from the previous point in the path figure through a set of vertices, using specified control points.
CreateRadialGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>>, System::Drawing::PointF, System::Drawing::PointF, float, float)Creates a new radial gradient brush.
CreateRadialGradientBrush(System::Drawing::PointF, System::Drawing::PointF, float, float)Creates a new radial gradient brush.
CreateSolidColorBrush(System::SharedPtr<XpsModel::XpsColor>)Creates a new solid color brush.
CreateSolidColorBrush(System::Drawing::Color)Creates a new solid color brush.
CreateVisualBrush(System::SharedPtr<XpsModel::XpsContentElement>, System::Drawing::RectangleF, System::Drawing::RectangleF)Creates a new visual brush.
Dispose() overrideDisposes the instance.
get_ActiveDocument()Gets the active document number.
get_ActivePage()Gets the active page number within the active document.
get_DocumentCount()Returns the number of documents inside the XPS package.
get_JobPrintTicket()Returns/sets document’s job print ticket.
get_Page()Returns an XpsPage instance for active page.
get_PageCount()Returns the number of pages in the active document.
get_TotalPageCount()Returns total number of pages in all documents inside XPS document.
get_Utils() constGets the object that provides utilities beyond the formal XPS manipulation API.
GetDocumentPrintTicket(int32_t)Returns the print ticket of the document indexed by documentIndex .
GetPagePrintTicket(int32_t, int32_t)Returns the print ticket of the page indexed by pageIndex in the document indexed by documentIndex .
Insert(int32_t, T)Inserts an element (Canvas, Path, or Glyphs) to the active page at index position.
InsertCanvas(int32_t)Inserts a new canvas to the active page at index position.
InsertDocument(int32_t, bool)Inserts an empty document with default page size at index position.
InsertDocument(int32_t, float, float, bool)Inserts an empty document with the first page dimensions width and height at index position.
InsertGlyphs(int32_t, System::String, float, System::Drawing::FontStyle, float, float, System::String)Inserts new glyphs to the active page at index position.
InsertGlyphs(int32_t, System::SharedPtr<XpsModel::XpsFont>, float, float, float, System::String)Inserts new glyphs to the active page at index position.
InsertPage(int32_t, bool)Inserts an empty page to the document with default page size at index position.
InsertPage(int32_t, float, float, bool)Inserts an empty page to the document with specified width and height at index position.
InsertPage(int32_t, System::SharedPtr<XpsModel::XpsPage>, bool)Inserts a page to the document at index position.
InsertPath(int32_t, System::SharedPtr<XpsModel::XpsPathGeometry>)Inserts a new path to the active page at index position.
Merge(System::ArrayPtr<System::String>, System::String)Merging several XPS files to one XPS document.
Merge(System::ArrayPtr<System::String>, System::SharedPtr<System::IO::Stream>)Merging several XPS files to one XPS document.
MergeToPdf(System::ArrayPtr<System::String>, System::String, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Merging XPS documents to PDF using the Device instance.
MergeToPdf(System::ArrayPtr<System::String>, System::SharedPtr<System::IO::Stream>, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Merging XPS documents to PDF using the Device instance.
Remove(T)Removes an element from the active page.
RemoveAt(int32_t)Removes an element at index position from the active page.
RemoveDocumentAt(int32_t)Removes a document at index position.
RemovePage(System::SharedPtr<XpsModel::XpsPage>)Removes a page from the document.
RemovePageAt(int32_t)Removes a page from the document at index position.
Save(System::String)Saves XPS document to XPS file located at the path .
Save(System::SharedPtr<System::IO::Stream>)Saves XPS document to stream.
SaveAsImage(System::SharedPtr<Presentation::Image::ImageSaveOptions>)Saves the document in a bitmap image format.
SaveAsPdf(System::String, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Saves the document in PDF format.
SaveAsPdf(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Saves the document in PDF format.
SaveAsPs(System::String, System::SharedPtr<EPS::Device::PsSaveOptions>)Saves the document in PS format.
SaveAsPs(System::SharedPtr<System::IO::Stream>, System::SharedPtr<EPS::Device::PsSaveOptions>)Saves the document in PS format.
SelectActiveDocument(int32_t)Selects an active document for editing.
SelectActivePage(int32_t)Selects an active document page for editing.
set_JobPrintTicket(System::SharedPtr<Aspose::Page::XPS::XpsMetadata::JobPrintTicket>)Returns/sets document’s job print ticket.
SetDocumentPrintTicket(int32_t, System::SharedPtr<XpsMetadata::DocumentPrintTicket>)Links the printTicket to the document indexed by documentIndex .
SetPagePrintTicket(int32_t, int32_t, System::SharedPtr<XpsMetadata::PagePrintTicket>)Links the printTicket to the page indexed by pageIndex in the document indexed by documentIndex .
XpsDocument()Creates empty XPS document with default page size.
XpsDocument(System::String)Opens an existing XPS document located at the path .
XpsDocument(System::String, System::SharedPtr<LoadOptions>)Opens an existing document located at the path as XPS document.
XpsDocument(System::SharedPtr<System::IO::Stream>, System::SharedPtr<LoadOptions>)Loads an existing document stored in the stream as XPS document.

See Also