Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6029981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:58:06+00:00 2026-05-23T04:58:06+00:00

As of now, I’m using Process to call GhostPDL to convert my XPS files

  • 0

As of now, I’m using Process to call GhostPDL to convert my XPS files into PDF files.

The problem is that sometimes these conversions take a while. Currently I’m using a notification to let the user wait. But I would like to have a progress bar of some sort. I read that I can use StandardError for this, but I don’t even know even how to make GhostPDL output progress status from the command line. I’ve tried searching for the manual to see if there was an argument to turn in on but I have no luck.

Is there a way to turn on status output or even so, alternative ways to convert XPS to PDF? I’m open to any ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:58:07+00:00Added an answer on May 23, 2026 at 4:58 am

    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 (ExchangeServer2007_ AdminComp_ chapter_02.xps) to a perfect PDF document:

     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
    

    However, I think gxps (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 -dDEBUG does work)…


    Update: I’m not familiar with any other tool that can convert XPS to PDF directly, but I know there’s a bunch of them. You may be more lucky if you consult Google search results.

    Of course you can always print the XPS to a “PDF Printer”. There are different ways to do that on the commandline, which may give you some progress feedback.

    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 -dFirstPage=1 -dLastPage=10 and inform the user that currently pages 1-10 out of NNN are being processed.

    Update 2: Here is a way how to get a feedback on stdout as each page is being processed:

     time gxps \
       '-Z|' \
       -o ExchangeServer2007_AdminComp_chapter_02.xps.gxps.pdf \
       -sDEVICE=pdfwrite \
        ExchangeServer2007_AdminComp_chapter_02.xps
    

    Note the single quotes ' around the -Z|. The second char is a Pipe sign, not a capital i… Result:

     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
    

    Thanks to Ghostscript developer Tor Anderson who gave me the decisive hint in the #ghostscript IRC channel on Freenode.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now that Apple is about to start shipping iPhone 5's, I'm looking into extending
Now that I know C++ I want to get into desktop application that have
now i'm working on a project for creating audio unit instrument that provide the
Now facebook require to have these options when you want to use bulit-in actions
Now I try to developing an application related to Image processing, for that I
Now that the new version of SignalR has done away with the IConnectionFactory interface,
Now and again I end up with code along these lines, where I create
Now I am implementing UDP server to gather sflow datagrams using netty library. Here
Now that Windows RT has been jailbroken I want to port my VB app
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.