Aspose::Page::XPS::XpsDocument kelas

XpsDocument class

Kelas yang mengenkapsulasi entitas utama dokumen XPS yang menyediakan metode manipulasi untuk setiap elemen XPS.

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

Metode

MetodeDeskripsi
Add(T)Menambahkan elemen konten (Canvas, Path, atau Glyphs).
AddCanvas()Menambahkan kanvas baru ke halaman aktif.
AddDocument(bool)Menambahkan dokumen kosong dengan ukuran halaman default.
AddDocument(float, float, bool)Menambahkan dokumen kosong dengan dimensi halaman pertama width dan height.
AddGlyphs(System::String, float, System::Drawing::FontStyle, float, float, System::String)Menambahkan glyph baru ke halaman aktif.
AddGlyphs(System::SharedPtr<XpsModel::XpsFont>, float, float, float, System::String)Menambahkan glyph baru ke halaman aktif.
AddOutlineEntry(System::String, int32_t, System::SharedPtr<XpsModel::XpsHyperlinkTarget>)Menambahkan entri outline ke dokumen.
AddPage(bool)Menambahkan halaman kosong ke dokumen dengan ukuran halaman default.
AddPage(float, float, bool)Menambahkan halaman kosong ke dokumen dengan width dan height yang ditentukan.
AddPage(System::SharedPtr<XpsModel::XpsPage>, bool)Menambahkan halaman ke dokumen.
AddPath(System::SharedPtr<XpsModel::XpsPathGeometry>)Menambahkan jalur baru ke halaman aktif.
Assert()
CreateArcSegment(System::Drawing::PointF, System::Drawing::SizeF, float, bool, XpsModel::XpsSweepDirection, bool)Membuat segmen busur elips baru.
CreateCanvas()Membuat kanvas baru.
CreateColor(System::Drawing::Color)Membuat warna baru.
CreateColor(int32_t, int32_t, int32_t, int32_t)Membuat warna baru dalam ruang warna sRGB.
CreateColor(int32_t, int32_t, int32_t)Membuat warna baru dalam ruang warna sRGB.
CreateColor(float, float, float, float)Membuat warna baru dalam ruang warna scRGB.
CreateColor(float, float, float)Membuat warna baru dalam ruang warna scRGB.
CreateColor(System::String, const System::ArrayPtr<float>&)Membuat warna baru dalam ruang warna berbasis ICC.
CreateColor(System::SharedPtr<XpsModel::XpsIccProfile>, const System::ArrayPtr<float>&)Membuat warna baru dalam ruang warna berbasis ICC.
CreateFont(System::String, System::Drawing::FontStyle)Membuat sumber daya font TrueType baru.
CreateFont(System::SharedPtr<System::IO::Stream>)Membuat sumber daya font TrueType baru dari aliran.
CreateGlyphs(System::String, float, System::Drawing::FontStyle, float, float, System::String)Membuat glyphs baru.
CreateGlyphs(System::SharedPtr<XpsModel::XpsFont>, float, float, float, System::String)Membuat glyphs baru.
CreateGradientStop(System::SharedPtr<XpsModel::XpsColor>, float)Membuat gradient stop baru.
CreateGradientStop(System::Drawing::Color, float)Membuat gradient stop baru.
CreateIccProfile(System::String)Membuat sumber daya profil ICC baru dari file profil ICC yang terletak di iccProfilePath.
CreateIccProfile(System::SharedPtr<System::IO::Stream>)Membuat sumber daya profil ICC baru dari stream.
CreateImage(System::String)Membuat sumber daya gambar baru dari file gambar yang terletak di imagePath.
CreateImage(System::SharedPtr<System::IO::Stream>)Membuat sumber daya gambar baru dari stream.
CreateImageBrush(System::SharedPtr<XpsModel::XpsImage>, System::Drawing::RectangleF, System::Drawing::RectangleF)Membuat image brush baru.
CreateImageBrush(System::String, System::Drawing::RectangleF, System::Drawing::RectangleF)Membuat image brush baru.
CreateLinearGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>>, System::Drawing::PointF, System::Drawing::PointF)Membuat linear gradient brush baru.
CreateLinearGradientBrush(System::Drawing::PointF, System::Drawing::PointF)Membuat linear gradient brush baru.
CreateMatrix(float, float, float, float, float, float)Membuat matriks transformasi afine baru.
CreatePath(System::SharedPtr<XpsModel::XpsPathGeometry>)Membuat path baru.
CreatePathFigure(System::Drawing::PointF, bool)Membuat path figure baru.
CreatePathFigure(System::Drawing::PointF, System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathSegment>>>, bool)Membuat path figure baru.
CreatePathGeometry(System::String)Membuat path geometry baru yang ditentukan dengan bentuk singkat.
CreatePathGeometry()Membuat path geometry baru.
CreatePathGeometry(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsPathFigure>>>)Membuat path geometry baru dengan daftar path figure yang ditentukan.
CreatePolyBezierSegment(System::ArrayPtr<System::Drawing::PointF>, bool)Membuat sekumpulan kurva Bézier kubik baru.
CreatePolyLineSegment(System::ArrayPtr<System::Drawing::PointF>, bool)Membuat gambar poligonal baru yang berisi jumlah vertex individual secara sembarang.
CreatePolyQuadraticBezierSegment(System::ArrayPtr<System::Drawing::PointF>, bool)Membuat sekumpulan kurva Bézier kuadratik baru dari titik sebelumnya dalam path figure melalui sekumpulan vertex, menggunakan titik kontrol yang ditentukan.
CreateRadialGradientBrush(System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<XpsModel::XpsGradientStop>>>, System::Drawing::PointF, System::Drawing::PointF, float, float)Membuat radial gradient brush baru.
CreateRadialGradientBrush(System::Drawing::PointF, System::Drawing::PointF, float, float)Membuat radial gradient brush baru.
CreateSolidColorBrush(System::SharedPtr<XpsModel::XpsColor>)Membuat solid color brush baru.
CreateSolidColorBrush(System::Drawing::Color)Membuat solid color brush baru.
CreateVisualBrush(System::SharedPtr<XpsModel::XpsContentElement>, System::Drawing::RectangleF, System::Drawing::RectangleF)Membuat visual brush baru.
Dispose() overrideMembuang instance.
get_ActiveDocument()Mendapatkan nomor dokumen aktif.
get_ActivePage()Mendapatkan nomor halaman aktif dalam dokumen aktif.
get_DocumentCount()Mengembalikan jumlah dokumen di dalam paket XPS.
get_JobPrintTicket()Mengembalikan/mengatur tiket cetak pekerjaan dokumen.
get_Page()Mengembalikan sebuah instance XpsPage untuk halaman aktif.
get_PageCount()Mengembalikan jumlah halaman dalam dokumen aktif.
get_TotalPageCount()Mengembalikan total jumlah halaman dalam semua dokumen di dalam dokumen XPS.
get_Utils() constMendapatkan objek yang menyediakan utilitas di luar API manipulasi XPS formal.
GetDocumentPrintTicket(int32_t)Mengembalikan tiket cetak dari dokumen yang diindeks oleh documentIndex .
GetPagePrintTicket(int32_t, int32_t)Mengembalikan tiket cetak dari halaman yang diindeks oleh pageIndex dalam dokumen yang diindeks oleh documentIndex .
Insert(int32_t, T)Menyisipkan elemen (Canvas, Path, atau Glyphs) ke halaman aktif pada posisi index .
InsertCanvas(int32_t)Menyisipkan kanvas baru ke halaman aktif pada posisi index .
InsertDocument(int32_t, bool)Menyisipkan dokumen kosong dengan ukuran halaman default pada posisi index .
InsertDocument(int32_t, float, float, bool)Menyisipkan dokumen kosong dengan dimensi halaman pertama width dan height pada posisi index .
InsertGlyphs(int32_t, System::String, float, System::Drawing::FontStyle, float, float, System::String)Menyisipkan glyph baru ke halaman aktif pada posisi index .
InsertGlyphs(int32_t, System::SharedPtr<XpsModel::XpsFont>, float, float, float, System::String)Menyisipkan glyph baru ke halaman aktif pada posisi index .
InsertPage(int32_t, bool)Menyisipkan halaman kosong ke dokumen dengan ukuran halaman default pada posisi index .
InsertPage(int32_t, float, float, bool)Menyisipkan halaman kosong ke dokumen dengan width dan height yang ditentukan pada posisi index .
InsertPage(int32_t, System::SharedPtr<XpsModel::XpsPage>, bool)Menyisipkan halaman ke dokumen pada posisi index .
InsertPath(int32_t, System::SharedPtr<XpsModel::XpsPathGeometry>)Menyisipkan jalur baru ke halaman aktif pada posisi index .
Merge(System::ArrayPtr<System::String>, System::String)Menggabungkan beberapa file XPS menjadi satu dokumen XPS.
Merge(System::ArrayPtr<System::String>, System::SharedPtr<System::IO::Stream>)Menggabungkan beberapa file XPS menjadi satu dokumen XPS.
MergeToPdf(System::ArrayPtr<System::String>, System::String, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Menggabungkan dokumen XPS ke PDF menggunakan instance Device.
MergeToPdf(System::ArrayPtr<System::String>, System::SharedPtr<System::IO::Stream>, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Menggabungkan dokumen XPS ke PDF menggunakan instance Device.
Remove(T)Menghapus elemen dari halaman aktif.
RemoveAt(int32_t)Menghapus elemen pada posisi index dari halaman aktif.
RemoveDocumentAt(int32_t)Menghapus dokumen pada posisi index.
RemovePage(System::SharedPtr<XpsModel::XpsPage>)Menghapus halaman dari dokumen.
RemovePageAt(int32_t)Menghapus halaman dari dokumen pada posisi index.
Save(System::String)Menyimpan dokumen XPS ke file XPS yang terletak di path .
Save(System::SharedPtr<System::IO::Stream>)Menyimpan dokumen XPS ke aliran.
SaveAsImage(System::SharedPtr<Presentation::Image::ImageSaveOptions>)Menyimpan dokumen ke file gambar. Direktori output dan nama file akan sama dengan file XPS input. Ekstensi file akan sesuai dengan format gambar dalam parameter “options”. Jika dokumen diinisialisasi dengan aliran yang bukan FileStream, file gambar akan disimpan di folder saat ini dengan templat nama file default.
SaveAsImage(System::SharedPtr<Presentation::Image::ImageSaveOptions>, System::String, System::String)Menyimpan dokumen ke file gambar ke direktori yang ditentukan dengan nama file yang ditentukan. Ekstensi file akan sesuai dengan format gambar dalam parameter “options”.
SaveAsImageBytes(System::SharedPtr<Presentation::Image::ImageSaveOptions>)Menyimpan dokumen dalam format gambar bitmap sebagai array byte.
SaveAsPdf(System::String, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Menyimpan dokumen dalam format PDF.
SaveAsPdf(System::SharedPtr<System::IO::Stream>, System::SharedPtr<Presentation::Pdf::PdfSaveOptions>)Menyimpan dokumen dalam format PDF.
SaveAsPs(System::String, System::SharedPtr<EPS::Device::PsSaveOptions>)Menyimpan dokumen dalam format PS.
SaveAsPs(System::SharedPtr<System::IO::Stream>, System::SharedPtr<EPS::Device::PsSaveOptions>)Menyimpan dokumen dalam format PS.
SelectActiveDocument(int32_t)Memilih dokumen aktif untuk diedit.
SelectActivePage(int32_t)Memilih halaman dokumen aktif untuk diedit.
set_JobPrintTicket(System::SharedPtr<Aspose::Page::XPS::XpsMetadata::JobPrintTicket>)Mengembalikan/mengatur tiket cetak pekerjaan dokumen.
SetDocumentPrintTicket(int32_t, System::SharedPtr<XpsMetadata::DocumentPrintTicket>)Menautkan printTicket ke dokumen yang diindeks oleh documentIndex.
SetPagePrintTicket(int32_t, int32_t, System::SharedPtr<XpsMetadata::PagePrintTicket>)Menautkan printTicket ke halaman yang diindeks oleh pageIndex dalam dokumen yang diindeks oleh documentIndex.
XpsDocument()Membuat dokumen XPS kosong dengan ukuran halaman default.
XpsDocument(System::String)Membuka dokumen XPS yang ada yang terletak di path.
XpsDocument(System::String, System::SharedPtr<LoadOptions>)Membuka dokumen yang ada yang terletak di path sebagai dokumen XPS.
XpsDocument(System::SharedPtr<System::IO::Stream>, System::SharedPtr<LoadOptions>)Memuat dokumen yang ada yang disimpan dalam stream sebagai dokumen XPS.

Lihat Juga