user2186105
user2186105

Reputation: 11

PDF to XPS with java

Could you please help me to find a way to convert the PDF file to XPS file with java programmable? Is it possible to do that as freeware library??

Upvotes: 1

Views: 1228

Answers (1)

CloudyMarble
CloudyMarble

Reputation: 37576

Its not the best solution but according to this thread you can use ghostscript (invoking command line command) to convert the PDF to Images, from those images then create an XPS document:

gswin32c.exe -Z, -sDEVICE=png16m-sOutputFile="%04do.png" "temp.pdf"

Upvotes: 1

Related Questions