Main Page Xps

From NDesk

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:15, 6 January 2007 (edit)
Alp (Talk | contribs)

← Previous diff
Revision as of 22:20, 6 January 2007 (edit) (undo)
Alp (Talk | contribs)

Next diff →
Line 1: Line 1:
-[[Image:Xps.png|thumb|125px]]+[[Image:Xps.png|thumb|200px]]
-This is an implementation of [http://www.microsoft.com/whdc/xps/default.mspx XPS] (XML Paper Specification), a fixed-layout document format. It's not yet complete but manages to render many documents.+This is an implementation of [http://www.microsoft.com/whdc/xps/default.mspx XPS], the XML Paper Specification, a fixed-layout document format. It's not yet complete but manages to render many documents.
It works by targeting [http://cairographics.org/ Cairo], a 2D graphics library with support for multiple output devices. The imaging models are fairly similar so lossless conversions to targets like PDF should be possible. It works by targeting [http://cairographics.org/ Cairo], a 2D graphics library with support for multiple output devices. The imaging models are fairly similar so lossless conversions to targets like PDF should be possible.
Line 7: Line 7:
NDesk Xps is capable of taking an xps file and processing it entirely in memory, including support for loading and de-obfuscating embedded fonts and subsetting them (using Cairo) to the target surface. This means that text can maintain its typographic qualities throughout conversion without rasterisation. NDesk Xps is capable of taking an xps file and processing it entirely in memory, including support for loading and de-obfuscating embedded fonts and subsetting them (using Cairo) to the target surface. This means that text can maintain its typographic qualities throughout conversion without rasterisation.
-Xps+The code is written in C# and has been tested only on [http://www.mono-project.com/Main_Page Mono]. The only tool available is currently an XPS-to-PDF converter, however conversions to other file formats such as SVG and PostScript is trivially possible and will be supported soon. The code can also trivially and efficiently support graphical viewers, and the goal is to eventually provide Gtk# and Windows.Forms XPS viewer utilities.
 + 
 +XPS is an interesting format because, apart from its physical package layout, its format is a subset of Microsoft's [http://msdn2.microsoft.com/en-us/asp.net/bb187358.aspx WPF/E] Windows Presentation Foundation. Thus the NDesk XPS project can act as a stepping stone towards a fuller implementation of the WPF specification.
== Download == == Download ==

Revision as of 22:20, 6 January 2007

This is an implementation of XPS, the XML Paper Specification, a fixed-layout document format. It's not yet complete but manages to render many documents.

It works by targeting Cairo, a 2D graphics library with support for multiple output devices. The imaging models are fairly similar so lossless conversions to targets like PDF should be possible.

NDesk Xps is capable of taking an xps file and processing it entirely in memory, including support for loading and de-obfuscating embedded fonts and subsetting them (using Cairo) to the target surface. This means that text can maintain its typographic qualities throughout conversion without rasterisation.

The code is written in C# and has been tested only on Mono. The only tool available is currently an XPS-to-PDF converter, however conversions to other file formats such as SVG and PostScript is trivially possible and will be supported soon. The code can also trivially and efficiently support graphical viewers, and the goal is to eventually provide Gtk# and Windows.Forms XPS viewer utilities.

XPS is an interesting format because, apart from its physical package layout, its format is a subset of Microsoft's WPF/E Windows Presentation Foundation. Thus the NDesk XPS project can act as a stepping stone towards a fuller implementation of the WPF specification.

Download

git-clone git://git.ndesk.org/pub/scm/ndesk-xps

Usage

mono loader.exe Document.xps

This produces Document.pdf.

Retrieved from "http://ndesk.org/Xps"