Skip to content

Category: Questions

PDFTron Webviewer Open PDF with a user password

I am trying to use the PDFTron WebViewer within a Blazor application to open a PDF with a user password. I would like to do this without a user dialog but I am can’t figure out how to. I am calling the initWebView function with the url path to the passworded pdf. This downloads the document and displays…

Display multiple random images rather than just the one

The code below displays one image from an array at random. I’ve been trying to change it without success to show all the images from the array at random. I’ve used a while loop to generate the random function. The random function works and randomises the whole array but only on image is returned. …

How to detect a frozen video stream in WebRTC

Unfortunately, from time to time when making a one-on-one video call using react-native-webrtc one of the two video streams freezes or becomes black. Is there a way to detect when that happens programmatically? Thx in advance! Answer It looks like each video track has a listener that fires as soon as the stre…

assign value to select in methods in vuejs?

How do I change the <a-select-option>s when I select a radio button? Answer You can compute the <a-select>’s options based on the <a-radio-group>’s value. Instead of the change-event handler, use a v-model directive on the <a-radio-group> to store the selected brand, and on…