Java File Manipulation APIs for XPS, PS & EPS

Create or manipulate XPS files. Convert XPS, EP & EPS documents to PDF and various images without any software dependencies.

Aspose.Page for Java

Aspose.Page for Java

 
 

Aspose.Page for Java is an XPS and PostScript document processing and parsing API. Developers can 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.

 

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

API creates XPS files on the fly or loads existing 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 document
XpsDocument nwDoc = new XpsDocument();
// add glyph to the document
com.aspose.nwDoc.XpsGlyphs glyphs = nwDoc.addGlyphs("Arial", 12, XpsFontStyle.Regular, 300f, 450f, "Hello World!");
glyphs.setFill(xps.createSolidColorBrush(Color.BLACK));
// save result
nwDoc.save(dir + "output.xps");

Render PostScript Files to Images & PDF

The library provides specialized classes for converting EPS & PS files to raster images & PDF. The configuration of the conversion process is easy to control the image quality within the PDF as well as for standalone images. Furthermore, developers may easily suppress errors if they are working with batches.

 

Support and Learning Resources

 
 

Aspose.Page offers PostScript and XPS processing APIs for other popular development environments as listed below: