Frequently Asked Questions | Aspose.Page for C++
Q: What is Aspose.Page for C++ used for?
A: This powerful library empowers you to manage XPS and PostScript (EPS/PS) files with ease:
- Create new XPS documents from scratch, or edit existing ones. Add, remove, or manipulate elements for ultimate control over your content.
- Convert XPS and EPS/PS files into widely used formats like PDF and various image types (JPEG, PNG etc.) for effortless sharing and use.
- Aspose.Page provides tools for targeted editing, allowing you to manipulate document elements like vector graphics and shapes.
- Specify colors in different color spaces, group shapes for better organization, and create stunning visuals.
Q: What formats does Aspose.Page for C++ support?
A: It supports PS, XPS, EPS, and OXPS as input and PS, EPS, PDF, PNG, JPEG, TIFF, EMF, WMF, and BMP formats as output.
Q: How to convert files within Aspose.Page for С++?
A: Aspose.Page allows you to convert XPS and EPS/PS documents into more widely used formats like PDF and various image formats (JPEG, PNG, etc.). The conversion process is really simple. You need to take only a few steps!
- Load the output file with Aspose.Page for C++.
- Call the Save() method.
- Pass the output file path with its file extension.
- The output file will be saved at the specified path so it in compatible program.
To see more examples, please visit
Convertion guides.
Q: Can developers use Aspose.Page for C++ to create and edit XPS documents?
A: Yes, developers can build new XPS documents from scratch or modify existing ones. This includes adding, removing, or manipulating elements within the document.
To create XPS file you just need to:
1 // Create an XPS document
2 auto xpsDocs = MakeObject<XpsDocument>();
3
4 // Save the result
5 xpsDocs->Save(dir + u"output.xps");
Q: Does Aspose.Page API Solution let developers work with document pages and elements?
A: Absolutely! The libraryis perfect for manipulating individual pages within the document, allowing for targeted editing and customization. You can also manage document elements like vector graphics and shapes.
Q: Can I add figures to PS, EPS, XPS file using this API for C++?
A: Aspose.Page includes such functionallity. Let’s examine it on the example of adding a rectangle to an XPS file:
1 class AddRectangle : public System::Object
2 {
3 typedef AddRectangle ThisType;
4 typedef System::Object BaseType;
5
6 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
7 RTTI_INFO_DECL();
8
9 public:
10
11 static void Run();
12
13 };
Q: How to install Aspose.Page Package from NuGet?
A: You can download its latest version directly, just open NuGet package manager, and search for Aspose.Page.Cpp and install. You may also use the following command from the Package Manager Console.
1 PM> Install-Package Aspose.Page
Q: What are the system requirements of Aspose.Page for C++?
A: Go to the
System Requirements page to get the actual information about operating systems and development environments needed to deal Aspose.Page for C++.
Q: Where can I learn more about the Page Description Language formats supported by the API?
A: Go to
Introduction to Page Description Languages chapter which is a complete and resourceful knowledge base about the most popular PDL formats, their peculiarities, structure, and comparison.
Q: Can I add pages to PS, EPS, XPS file using this API for C++?
A: Yes, certainly. Let’s examine this functionallity on the example of adding a page to an XPS file:
1 // Create a new XPS Document
2 System::SharedPtr<XpsDocument> doc = System::MakeObject<XpsDocument>(dataDir + u"Sample1.xps");
3
4 // Insert an empty page at the beginning of pages list
5 doc->InsertPage(1, true);
6
7 // Save the resultant XPS document
8 doc->Save(RunExamples::GetOutDir() + u"AddPages_out.xps");
Q: Can I remove page from a PS or XPS file?
A: Yes, to remove a page from a file use the RemovePage() Method and save the edited document.
Q: Can I try the Solution before purchasing it?
A: Yes, you can easily download Aspose.Page for C++ product for evaluation purposes. Evaluation version of Aspose.Page (without a license specified) provides full product functionality except for some evaluation limitations.
If you want to try it out without evaluation limitations, request a 30-day
temporary license.
Q: Where can I get help if I face any issues with the Solution?
A: Check the
Aspose Forum for answers or add a new topic with your issue if you did not find the one suitable for your problem.
Q: Where can I see the functionality of this API Solution implemented in web applications?
A: Check our
web solutions to convert, view, and merge PS, EPS, XPS, and OXPS files and crop and resize EPS files. They are the brightest examples you can use the API for developing your own products.