After we have opened a PDF document from a local or URL with PDF.js, we may need to use Javascript to manipulate the document. Therefor, we need to get and use the PDFViewerApplication.
“There are many people in the world who want to work hard but can’t, and people who work too hard and are exhausted. Please don’t use your efforts only to chase your own victory, please use them to help others.”