Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>On my Lenovo T500 notebook running Ubuntu Natty, with 2 GByte RAM, using GhostPDL 9.02, it took 2.3 seconds to convert a Microsoft-provided 38 page XPS (<a href="http://download.microsoft.com/download/7/2/6/726aa31c-2465-4dff-baec-0c7240f0c2da/ExchangeServer2007_AdminComp_chapter_02.xps" rel="nofollow">ExchangeServer2007_ AdminComp_ chapter_02.xps</a>) to a perfect PDF document:</p> <pre><code> time gxps \ -dDEBUG \ -o ExchangeServer2007_AdminComp_chapter_02.xps.gxps.pdf \ -sDEVICE=pdfwrite \ ExchangeServer2007_AdminComp_chapter_02.xps real 0m2.213s user 0m1.852s sys 0m0.200s </code></pre> <p>However, I think <code>gxps</code> (the GhostPDL command that can convert XPS to PDF currently does not provide any standard means to make it more chatty on stdout -- not even <code>-dDEBUG</code> does work)...</p> <hr> <p><strong>Update:</strong> I'm not <em>familiar</em> with any other tool that can convert XPS to PDF directly, but I <em>know</em> there's a bunch of them. You may be more lucky if you consult Google search results.</p> <p><strike>Of course you can always <em>print</em> the XPS to a "PDF Printer". There are different ways to do that on the commandline, which may give you some progress feedback.</p> <p>If you know in advance how many pages you'll have to convert, a (crappy) workaround with GhostPDL could be to convert the file in chunks, using a construct like <code>-dFirstPage=1 -dLastPage=10</code> and inform the user that <em>currently pages 1-10 out of NNN</em> are being processed.</strike></p> <p><strong>Update 2:</strong> Here is a way how to get a feedback on stdout as each page is being processed:</p> <pre><code> time gxps \ '-Z|' \ -o ExchangeServer2007_AdminComp_chapter_02.xps.gxps.pdf \ -sDEVICE=pdfwrite \ ExchangeServer2007_AdminComp_chapter_02.xps </code></pre> <p>Note the single quotes <code>'</code> around the <code>-Z|</code>. The second char is a <em>Pipe</em> sign, not a capital <em>i</em>... Result:</p> <pre><code> start part /FixedDocumentSequence.fdseq fixdoc /Documents/1/FixedDocument.fdoc page /Documents/1/Pages/1.fpage w=0 h=0 page /Documents/1/Pages/2.fpage w=0 h=0 page /Documents/1/Pages/3.fpage w=0 h=0 [....] page /Documents/1/Pages/37.fpage w=0 h=0 page /Documents/1/Pages/38.fpage w=0 h=0 </code></pre> <p>Thanks to Ghostscript developer Tor Anderson who gave me the decisive hint in the <em>#ghostscript</em> IRC channel on Freenode.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload