Questions tagged [xps]

Open XML Paper Specification (XPS) is an open specification for a page description language and a fixed-document format originally developed by Microsoft as XML Paper Specification (XPS) that was later standardized by Ecma International as international standard ECMA-388. It is an XML-based specification, based on a new print path and a color-managed vector-based document format that supports device independence and resolution independence.

415 questions
8
votes
2 answers

Using CMYK colours in WPF/XAML

Is there any way to specify CMYK colours directly in a XAML document? prefixing them with # character will create RGB colours, but how to specify a CMYK colour? Some notes: The question is NOT about converting from CMYK to RGB but to use real…
el_shayan
  • 2,735
  • 4
  • 28
  • 42
8
votes
3 answers

Why am I losing my databinding when printing to an XpsDocument?

Update! Binding works. The issue is that the XpsDocumentWriter doesn't properly write the first page of the first document of a FixedDocumentSequence. This seems to be an issue encountered by lots of people doing this sort of thing (i.e., five…
user1228
8
votes
2 answers

How to convert every page in a XPS file to an image in C#?

Is there a way to convert every page in a XPS document to an image programmatically using C#?
Kaveh Shahbazian
  • 13,088
  • 13
  • 80
  • 139
8
votes
1 answer

PDF to XPS Converting via Microsoft XPS Document Writer

Printing pdf document with Microsoft XPS Document Writer: string filename = "C:\\1.pdf"; Process process = new Process(); process.StartInfo.Verb = "PrintTo"; process.StartInfo.FileName = @"C:\Program Files\Adobe\Reader…
Mykhail Galushko
  • 515
  • 2
  • 5
  • 14
7
votes
1 answer

Is there a way to use a ODTTF font file in my WPF app?

When an XPS file is created, it subsets and obfuscates the original document's fonts as ODTTF font files, and bundles them in the XPS file (which is just a zip file, so they are easily extracted.) I've extracted one of these ODTTF files, and…
Ross
  • 4,460
  • 2
  • 32
  • 59
7
votes
1 answer

Reading from PackagePart stream does not release memory

In our application, we are reading an XPS file using the System.IO.Packaging.Package class. When we read from a stream of a PackagePart, we can see from the Task Manager that the application's memory consumption rises. However, when the reading is…
bjutus
  • 109
  • 4
7
votes
1 answer

Opening FlowDocument saved as XPS document with XPS viewer?

I am saving a WPF FlowDocument to the file system, using this code and a fileName with an xps extension: // Save FlowDocument to file system as XPS document using (var fs = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.ReadWrite)) { …
David Veeneman
  • 18,912
  • 32
  • 122
  • 187
7
votes
2 answers

WPF DocumentViewer Find-function and FixedPage documents

.Net contains a nice control called DocumentViewer. it also offers a subcontrol for finding text in the loaded document (that's at least what it is supposed to do). When inserting FixedPage's objects as document source for the DocumentViewer, the…
Joachim Kerschbaumer
  • 9,695
  • 7
  • 49
  • 84
7
votes
2 answers

How do you hide a WPF DocumentViewer's menu bars?

At the moment I have a DocumentViewer in a WPF window that displays an XPS file. I have created my own "Next Page" and "Previous Page" buttons and have set the DocumentViewer.Background property to be completely transparent. All that is left of the…
Siyfion
  • 416
  • 1
  • 6
  • 17
7
votes
1 answer

Displaying an XPS document in Document Viewer

I'm having a go with document viewer and XPS atm as I haven't tried it before. So I have a simple piece of code loading an XPS document and displaying it in the document viewer, however the document doesn't appear. The document viewer loads and a…
SumGuy
  • 491
  • 5
  • 8
  • 22
6
votes
3 answers

FlowDocument (XPS) with Windows Update KB5020880 (CVE-2022-41089)

On 13. Dezember 2022 Microsoft made a Windows Update KB5020880 (CVE-2022-41089) for .NET 4.8.1 which should fix security problem on XPS. Since then the FlowDocument, which will be rendered to XPS, will not show local images anymore. I do need local…
jaz
  • 228
  • 2
  • 14
6
votes
2 answers

WPF image vector format export (XPS?)

Our tool allows export to PNG, which works very nicely. Now, I would like to add export to some vector format. I tried XPS, but the results are not satisfying at all. Take a look at a comparison http://www.jakubmaly.cz/xps-vs-png.png. The picture…
j_maly
  • 1,091
  • 1
  • 13
  • 27
6
votes
2 answers

Duplicate images printed in XPS file

First off I would like to point out that I have raised this as a bug with Microsoft but they are unwilling to fix it at this point in time. What I am looking for is a workaround or a better way of achieving what I am trying to do as our customer has…
Bijington
  • 3,661
  • 5
  • 35
  • 52
6
votes
1 answer

Java raw Postscript printing, sending XPS_PASS (Windows specific)

Newer XPS print drivers (almost all Windows 8 print drivers) require DOCINFO.pDataType = "XPS_PASS" (instead of "RAW") to pipe raw print jobs (Postscript/PCL/ZPL/etc). (Send Postscript Document to Printer using VC++) (How to make RawPrinterHelper…
user120242
  • 14,918
  • 3
  • 38
  • 52
6
votes
1 answer

Is ther any open tool to convert XPS to PDF?

I did a lot of digging to figure out an easy way to convert an XPS document into a PDF. There are many tools that can do this but they are not free. Is there a free alternative?
Bolo
  • 1,494
  • 1
  • 19
  • 19
1
2
3
27 28