Hello Magic Leap 2 developers! In response to recent inquiries about the PDF Renderer from Paroxe asset and its compatibility with Magic Leap 2, we've put together this guide to help you get it up and running smoothly on our device.
We've identified a bug in the asset that prevents one of the library files from loading properly on Magic Leap 2. We've reported the issue to the asset developer, but in the meantime, we'd like to offer you a workaround due to the assets popularity.
While this asset provides a plugin for Android x86_64, we noticed a bug in the package that prevents one of the libraries from loading properly on Magic Leap 2. We've reported the issue to the asset developer, but in the meantime, we'd like to offer you a workaround due to the assets popularity.
These instructions assume you have already purchased and imported the PDF Renderer from Paroxe asset into a Magic Leap 2 compatible project.
To address the compatibility issue, you'll need to replace the
Assets/Paroxe/PDFRenderer/Plugins/Android/libs/x86/libpdfrenderer.so library with one that has been compiled correctly for the Android x86_64 architecture. You can either build the library from source or download it from open-source projects like this one: GitHub - bblanchon/pdfium-binaries: 📰 Binary distribution of PDFium
Once you have a compatible version of the
libpdfium plugin, follow the steps below to configure it properly inside the PDF Renderer asset.
- Locate and rename the
libpdfrenderer.so(typically found in
- Navigate to the
- Configure the settings for the x86 and x64 plugins so they target the correct architectures
- Right-click the x64 version of the
libpdfrenderer.sofile and select Show in Explorer (Reveal in Finder on macOS)
- From your file browser, delete the existing plugin libpdfrenderer.so file and replace it with the one mentioned in Step 1.
- Enter Unity and select the plugin file. Confirm that the new library is the only
libpdfrenderer.sotargeting the Android x64 platform.
We hope this helps! Please let us know if you have any questions or need further assistance.