Browse our Products
Aspose.Page for C++ 25.10 Release Notes
This page contains release notes information for Aspose.Page for C++ 25.10.
Aspose.Page for C++ 25.10 is based on latest Aspose.Page for .NET 25.10.
Enhance public API for saving XPS as image.
Now saving XPS as image files can be done in 1 line.
Either this:
// Load XPS document form the XPS file
System::SharedPtr<XpsDocument> document = System::MakeObject<XpsDocument>(dataDir + u"input.xps", System::MakeObject<XpsLoadOptions>());
//Save XPS document as image files in the folder where input XPS file is located with the name of this XPS file with index of page suffix.
document->SaveAsImage(System::MakeObject<JpegSaveOptions>());or that:
// Load XPS document form the XPS file
System::SharedPtr<XpsDocument> document = System::MakeObject<XpsDocument>(dataDir + u"input.xps", System::MakeObject<XpsLoadOptions>());
//Save XPS document as image files in the assigned folder and file name template.
//Index of the page will be added as a suffix to file name template and the extension will be obtained from the save options.
System::String outputDir = dataDir + u"output";
System::String fileNameTemplate = u"outputPngImage.png";
document->SaveAsImage(System::MakeObject<PngSaveOptions>(), outputDir, fileNameTemplate);Public API and Backwards Incompatible Changes
Added APIs
- M: void Aspose::Page::XPS::XpsDocument::SaveAsImage(System::SharedPtr<Aspose::Page::XPS::Presentation::Image::ImageSaveOptions>)
- M: void Aspose::Page::XPS::XpsDocument::SaveAsImage(System::SharedPtr<Aspose::Page::XPS::Presentation::Image::ImageSaveOptions>, System::String, System::String)
You can consult Aspose.Page for C++ API Reference for documentation.