Java File Manipulation APIs for XPS, PS & EPS
Create or manipulate XPS files. Convert XPS, EP & EPS files to PDF and various images without any software dependencies.Download Free Trial
Aspose.Page for Java
Aspose.Page for Java is a PostScript and XPS document parsing and processing API. Developers can easily convert PS & EPS files to PDF and raster image formats. API also permits the users to create, parse and save XPS files as well as add and remove pages within the documents. Furthermore, developers may create canvases, paths and glyph elements for XPS documents and perform operations such as add or remove pages, create vectors & strings, use brushes, and manipulate the appearance of elements.
At A Glance
An overview of Aspose.Page for Java API.
- PostScript files to EMF & WMF
- PostScript files to PDF & Images
- XPS files to XPS, PDF & Images
- Solid Color Brush
- Image Brush
- Visual Brush
- Linear Gradient Brush
- Radial Gradient Brush
- ICC Profile
API fully supports the GUI based Desktop, Web and Console Applications.
- JSP/JSF Application
- Desktop Applications
- Console Applications
Supported File Formats
Aspose.Page for Java supported file formats are listed below.
- Fixed Layout: XPS
- PostScript: PS , EPS
- Fixed Layout: PDF
- Images: PNG, JPEG, TIFF, BMP
- GIF, EMF, WMF
Advanced XPS and PostScript API Features
PostScript language levels 1-3 are supported
Save PS & EPS files as PDF or raster images
Create or load XPS files for editing
Edit, save and render XPS outline items
Convert XPS file to images or PDF
Add or delete pages within existing XPS documents
Specify colors using different color spaces
Handle multiple documents within XPS file
Create vector graphics with the help of primitives
Create or Parse XPS Documents
Aspose.Page for Java creates XPS files on the fly. API loads existing XPS documents for parsing and manipulation. It can perform different operations like changing the appearance of graphics and text strings, specifying colors in different color spaces, manipulate device configuration information, user intent and much more.
Java developers can easily integrate all these features with just a few lines of code.
Create XPS file from scratch - Java
// create XPS document XpsDocument xpsDocs = new XpsDocument(); // add glyph to the document com.aspose.xpsDocs.XpsGlyphs glyphs = xpsDocs.addGlyphs("Arial", 12, XpsFontStyle.Regular, 300f, 450f, "Hello World!"); glyphs.setFill(xps.createSolidColorBrush(Color.BLACK)); // save result xpsDocs.save(dir + "output.xps");
Convert PostScript Files to PDF & Images
Aspose.Page for Java provides specialized classes for converting PS & EPS files to PDF & raster image formats. The configuration of conversion process is easy to control the quality of images within the PDF as well as for standalone images. Furthermore, developers may easily supress errors if they are working with batches.