Bug 695680 - Bad XPS file created
Summary: Bad XPS file created
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: XPS writer (show other bugs)
Version: master
Hardware: All All
: P4 normal
Assignee: Henry Stiles
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-13 11:47 UTC by Michael Vrhel
Modified: 2015-01-13 07:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Vrhel 2014-11-13 11:47:30 UTC
the input tests_private/pdf/PDF_1.7_FTS/fts_06_0626.pdf

results output that can not be viewed by the MS XPS viewer.

gxps has a segv with the resulting output.
Comment 1 Henry Stiles 2014-11-13 14:15:33 UTC
I cannot reproduce the crash in gxps.  The file tests the Page objects "UserUnits" setting it to 11, so the page is ~ 93x121 inches.  I suspect that blows up the XPS viewer.  Can somebody open the file in PDF acrobat and print it to the XPS writer to verify that it does the same thing.  I don't have acrobat on my PC, just reader and it does not support "UserUnits", I only get a regular sized page.  I have acrobat on the mac but of course I can't produce the XPS on the mac.
Comment 2 Ken Sharp 2014-11-14 00:26:35 UTC
Printing from Acrobat to the MS XPS document writer results in an Letter page. You can scale the input to Letter, crop it to Letter, produce tiles, multiple pages or a booklet, but I cannot find any way to make it allow a different media size.

Altering the media in the print dialog doesn't help either, selecting a different media doesn't change anything (the printer properties from the control panel lists only Letter as available media), but even if it did, there is no 'custom' media size, the largest on offer is A2, so its simply not possible to print this file at 100% scale to this virtual printer.