Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
195 stars 9 forks source link

PDF/ PPTX #1133

Open VLandrej opened 3 years ago

VLandrej commented 3 years ago

Please add functionality to upload and view PDF / PPTX presentations.

mralext20 commented 3 years ago

there exists a community made tool, details here in the discord: https://discordapp.com/channels/402159838827905024/650043186466652203/737158337535410288

Froox has commented on this in the past,

I'd like to add that at some point, but PDF rendering is a complex beast, so it's not likely to come anytime soon. There are a bunch of libraries to handle it, but a lot of them are very expensive. You'll have to convert the pages to images now. https://discordapp.com/channels/402159838827905024/477711742001086505/654823441307926546

Frooxius commented 2 years ago

Since there's some interest in this, here's the main thing that we need to implement this:

We need a library that has C# wrapper (or ideally pure C# if it exists) that is capable of rasterizing PDF or PPTX into a texture and that is ideally multiplatform (e.g. we can run it on Windows, Linux, Android and so on). Without multiplatform one it will probably need to convert the document to images on import and as such it won't support really long ones well (thousands of pages).

There's a number of paid ones, but those are bit iffy to integrate as they're expensive and might not mesh well with our future goals.

If there's a C/C++ one with C API, we can write our own wrapper if it's sufficiently simple.

mpmxyz commented 1 year ago

PDFium from Google is multiplatform and available via an Apache License. I used it in a mod to import PDF pages as a bunch of images.