How to convert pdf to xps?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pratik sharma

    How to convert pdf to xps?

    how can i convert pdf to xps programatically in c#??
    i have already used convert2xps as well but it took nearly 10 mins to convert a ebook of pdf to xps in wpf.hence i want a better code or some instruction for that.
  • Aimee Bailey
    Recognized Expert New Member
    • Apr 2010
    • 197

    #2
    There is actually a great deal of difference between PDF and XPS, where PDF hosts a collection of objects that represent text/images etc..., XPS uses XML (actually I believe you can open them in a WPF FlowDocumentRea der) to preserve the information much like a open office writer document.

    One thing I think you should really consider, is what kind of PDF's are you planning to convert? document scan's () and mostly image type documents will take ages compared to pdf's containing more textual data.

    If you are indeed still brave enough to venture into this topic, i reccomend visiting this link:



    They have a tutorial on how to read a PDF, if all goes well, you would need to write a library to take the data you read from the PDF, and re-organize it into a FlowDocument so you could write as a XPS.

    Hope this helps!

    Aimee.

    Comment

    Working...