Hololens PDF Reader

molbalgamolbalga
edited January 3 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 3

    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.