Using the PDF Renderer from Paroxe

Magic Leap 2: PDF Renderer Asset Compatibility Guide

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.

Compatibility Fix Instructions

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

Note : If you are downloading the binaries from Github,, ensure you select the x64 version of the PDFium plugin from the downloads table.

Once you have a compatible version of the libpdfium plugin, follow the steps below to configure it properly inside the PDF Renderer asset.

  1. Locate and rename the libpdfium.so library to libpdfrenderer.so (typically found in /pdfium-android-x64/lib/libpdfium.so).
  2. Navigate to the Assets/Paroxe/PDFRenderer/Plugins/Android/libs directory
  3. Configure the settings for the x86 and x64 plugins so they target the correct architectures
  4. Right-click the x64 version of the libpdfrenderer.so file and select Show in Explorer (Reveal in Finder on macOS)
  5. From your file browser, delete the existing plugin libpdfrenderer.so file and replace it with the one mentioned in Step 1.
  6. Enter Unity and select the plugin file. Confirm that the new library is the only libpdfrenderer.so targeting the Android x64 platform.

We hope this helps! Please let us know if you have any questions or need further assistance.

2 Likes

Hi @kbabilinski thank you for the guide! I followed the instruction but I'm having some problems during the third step. What do you mean by " Configure the settings for the x86 and x64 plugins so they target the correct architectures"?

Do you mean the configuration inside the "Projects Settings>Player>Target Architectures"?

Thank you for the help!

Happy to help. To clarify, go to each of the Plugins located in the Assets Android Plugins folder and make sure each of the Plugin's Platform Settings targets the correct CPU in the inspector. Unity - Manual: Import and configure plug-ins