Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.

Hololens PDF Reader

molbalgamolbalga
edited January 2019 in Questions And Answers

Dear community
I am looking for a way to display PDF documents with the hololens. I am surprised this does not come as an standard component with the SDK.
What is the best way to achieve this?

Answers

  • molbalgamolbalga
    edited January 2019

    I know there is a component called PDF Renderer by Paroxe, but I was wondering whether there is any other method.

  • I don't know if it'll help in your scenario but I thought it might be worth mentioning that there are APIs within the Universal Windows Platform to do the basic work of opening, reading, displaying PDF documents.

    There is a sample over here in the official samples and the documentation starts over here around the classes PdfDocument, PdfPage, etc. I've just run that sample on the HoloLens emulator & it seemed to work for me.

    The essence of those APIs is that you can ask them to open a document, get the number of pages & then ask for a particular page to be rendered to a bitmap for your display whether in a 2D context (e.g. XAML) or a 3D context (e.g. used as some texture).

    That might be an option for you if you wanted to do some type of basic display of PDF pages inside your app or (if not) maybe you could launch the .PDF file via the default installed app on the device and let the user read it in an app of their choosing although that does mean that they then leave your app.

    I hope that helps a little, sorry if it doesn't.

Sign In or Register to comment.