Reputation: 51
I need to make a Mac application to view XPS documents on Mac. I know that MuPDF is able to render XPS documents . I searched extensively on the web about using MuPDF library to make a mac application for viewing XPS. But I got no any idea to start . I also did not find any proper documentation for such. I found a sample project for iOS that can do the same but it is not building. I would be grateful if anyone could help me out ! Thanks in advance.
Upvotes: 3
Views: 1479
Reputation: 37505
I'm able to build the mupdf iOS project by cloning the main mupdf git repo, running git submodule update --init, opening platform/ios/MuPDF.xcodeproj and building as normal.
If that doesn't work for you, can you edit your question to include the exact error message?
I am not aware of an mupdf example for Mac OS X, however you should be able to follow the iOS MuPageViewNormal.m code and do something fairly similar, probably using NSScrollView. If you're only trying to display XPS then you won't need to worry about all the code to do with annotations etc.
(The standard x11 mupdf can be built for Mac OS X, but this isn't a native Mac app so is unlikely to help you.)
Upvotes: 0