I am currently working on an Omniverse Extension where I want to load a PDF file, display it in a window, and enable interactions such as scrolling and page navigation within the Omniverse environment.
At the moment, I can open PDF files using the default viewer, but I haven’t found a way to display and interact with PDF content directly inside Omniverse. Is there a way to achieve this functionality, or are there any APIs or tools available that could help with this?
Specifically, I am aiming to implement the following features:
Display PDF content within a window in the Omniverse Extension
Allow users to scroll and navigate between pages
If you have any relevant information or sample code, I would greatly appreciate your guidance.
I will try to help you, but first I am curious as to why you are trying to display a pdf in Omniverse? For what purpose, as opposed to just having a pdf open in Adobe Acrobat in another window?
Thank you for your response. I’m looking to display PDFs within Omniverse to streamline discussions based on technical specifications, 3D model layouts, and drawings.
Currently, I need to switch between Omniverse and a separate PDF viewer, which, while possibly a minor inconvenience, can disrupt the workflow.
Ok understood. So you are looking for help interacting with a simple static PDF that is shown in the viewer… What viewer is that? I am not sure we have any code for this specifically. You may have to write this yourself as a custom extension.
The best bet would likely be to implement PyQT into your extension with its own process. PyQT actually has available documentation on doing something like this if you want a proper pdf viewer, or you could also write a script that converts a pdf to an image and then use the omni.ui Image widget if you wanted to keep all your ui Omniverse Native and just legitimately need to see the pdf.