Product: PDFTron Web SDK
Product Version: 8.11.0
Please give a brief summary of your issue:
We have built the custom UI using this guide
Now, I am not able to load audio files (primarily because not able to find the instance, which needs to be passed to initialize audio file)
WillW
2
Could you be please provide a code snippet on how you are initializing WebViewer Audio?
const loadAudioFile = async () => {
const { loadAudio } = await initializeAudioViewer(
instance,
{
license: process.env.REACT_APP_PDFTRON_KEY,
},
);
loadAudio(file);
};
Now in this I need to pass the Instance of Viewer. How to get that, since I am not using Webview to load document. I am using Core.documentViewer