Tips For Success

Having the best tools for document imaging is only half of the equation. Our Tech Tips are designed to provide you with valuable information to help you succeed by achieving faster results with our RasterMaster Imaging and Conversion SDKs or VirtualViewer high-speed document and image viewers. New time-saving tips are added monthly - you can receive them through Imaging News or our Tech Tips RSS feed.

Working with the XPS File Format

Snowbound Software’s RasterMasterTM for the .NET Platform includes a build option with the CIMG_decompress_bitmap_xps(String *filename, int iPage) and the CIMG_get_pages_xps(String *filename)  functions that allow you to work with the XPS file format.

Note: These functions are only available in the Visual Studio 2005 .NET library build with .NET Framework 3.0 support.

CIMG_decompress_bitmap_xps ()

The function decompresses an XPS file.

The following shows the CIMG_decompress_bitmap_xps(String *filename, int iPage) function syntax and variable descriptions:

Syntax

int CIMG_decompress_bitmap_xps(String *filename, int iPage);

Remark
The table below lists the CIMG_decompress_bitmap_xps function variable descriptions.

Variable

Description

filename

Path/filename of the XPS file

iPage

The page index of the XPS document to render

Returns
Integer

CIMG_get_pages_xps ()

This function returns the number of pages for the XPS file format.

The following shows the CIMG_get_pages_xps(String *filename)  function syntax and variable descriptions:

Syntax

int CIMG_get_pages_xps (String *filename);

Remark
The table below lists the CIMG_get_pages_xps function variable description.

Variable

Description

filename

Path/filename of the XPS file

Returns
Integer