XPSDocument is a class that renders XPS documents in WPF (Windows Presentation Foundation)
Questions tagged [xpsdocument]
113 questions
1
vote
0 answers
Converting a huge XPS document page to an image file
I have a preposterously large page (tens of thousands of pixels high and across, with tens of thousands of nodes and links) on an XPS document that I am attempting to convert to an image. The XPS document contains only one page.
On researching how…

Interminable
- 1,338
- 3
- 21
- 52
1
vote
1 answer
UIElement is exported to XPS, but not properly shown in Microsoft XPS viewer
I have been using the System.Windows.Xps.Packaging.XpsDocument class in an WPF application to export a collection of UIElements. It seems to work quite okay, but not always.
When there are two visuals with exactly the same visual properties, they…

roskoN
- 333
- 4
- 12
1
vote
0 answers
draw circle in XPS document API
How can I draw a circle with XPS document API?
I use following code, bit the circle is not drawn at all if start point and end point of circle is same. It draws "the arc of angle zero instead"..
XPS_POINT startPoint = { 500, 500};
hr =…

Zheden
- 583
- 2
- 11
- 36
1
vote
1 answer
Printing XPS with Annotations fails
this works
FixedDocumentSeqeunce fixedDocumentSeqeunce = XPSdoc.GetFixedDocumentSeqeunce();
DocumentPaginator paginator = fixedDocumentSeqeunce.DocumentPaginator;
printDialog.PrintDocument(paginator, "Title");
this…

paparazzo
- 44,497
- 23
- 105
- 176
1
vote
1 answer
Question Marks in XPS Document
I was playing around with XPS in C# and used this example as a starting point: https://code.msdn.microsoft.com/windowsdesktop/How-to-Edit-XPS-file-in-WPF-724ef6fb
I modified the example a bit and created a search and replace application for XPS…

rmnblm
- 147
- 2
- 9
1
vote
0 answers
unziped and ziped again XPS file is treated by viewer as invalid
Steps which I made are the following:
Create .doc file , filled with some content.
Print .doc to .xps
unzip .xps via 7zip
"DID NOT CHANGE ANYTHING"
zip again via 7zip
during opening via XPS Viewer EP (XpsRchVw.exe) rise error "...The document may…

user3305379
- 35
- 1
- 7
1
vote
1 answer
How to use XPSDocument to open a XPS file that is contained in a WPF application as a binary resource?
Basically I have embedded a xps file in a WPF application containing a XPSDocument Viewer as a resource.
On loading the application, I just want the document viewer to display that embedded resource.
public Page1()
{
InitializeComponent();
…

cygnus atratus
- 347
- 4
- 14
1
vote
2 answers
XpsDocument.FixedDocumentSequenceReader is nothing
Ok, so I can't figure this out. I created a quick word .docx in Win 8 using Word 2013. 3-4 lines of text, printed it using Microsoft XPS Document Writer v4. It created an .oxps. I changed that to a .zip, looked through the pages and read the…

Salteris
- 201
- 2
- 6
1
vote
1 answer
Problem with generating XPS documents with images in a WCF class library
I have a Silverlight application which uses a web service in order to create XPS documents. The document templates are created as XAML controls in a WCF class library.
public void GenerateXPS()
{
Type typeofControl =…

Stefan Filip
- 1,791
- 3
- 15
- 25
1
vote
1 answer
WPF Printing large custom control
I'm sorry if this is a duplicate, but I couldn't find anything relating to it.
I'm trying to create an XpsDocument from a custom control that I have. The custom control already defines properties for a header and a footer, along with the body.
The…

Max v. Steiger
- 178
- 9
0
votes
1 answer
Compare XPS and PDF, which will be the future standard?
Microsoft proposed XPS, how its status compared to PDF? Is there any advantage of XPS over pdf?

user496949
- 83,087
- 147
- 309
- 426
0
votes
1 answer
How can I set a binding to DocumentPageView.DocumentPaginator in WPF
how binding DocumentPageView in WPF?
my code:
Source is type of DocumentPaginator.
error is:
Error 1 A 'Binding' cannot be set on the 'DocumentPaginator' property of…

Mehrdad
- 405
- 1
- 6
- 10
0
votes
1 answer
Blank pages when implementing DocumentPaginator
I'm trying to implement a Paginator like this:
public class MyPaginator : DocumentPaginator{
// ommitting details...
public override DocumentPage GetPage(int pageNumber) {
DocumentPage page = new DocumentPage(canvas);
return page;
…

Louis Somers
- 2,560
- 3
- 27
- 57
0
votes
1 answer
XPSDocument Writer in Graysacale
I am using XPSDocumentWriter to create a XPS document in c# , What are the options I have if I have to write the XPSDocument in Grayscale , i.e in black and white.

user679530
- 897
- 1
- 8
- 11
0
votes
0 answers
System.Windows.Controls.DocumentViewer print create extra spacing between characters on windows 11
I create an xps document with QuesdPdf and post it to System.Windows.Controls.DocumentViewer.
Document appears in the viewer normally.
But after printing to pdf or xps document extra spaces created between some characters as below image.
The…

eykaraduman
- 1
- 3