Put filter on by default

My current situation is as follows:

I use PDFTron to view DWG files that are converted to PDF.
The PDF i view in PDFTron has white background and the text / lines in the drawing are in colors.
PDFTron has several filters I can apply, such as “monochrome” or “Black and white”, which converts the drawing into a black and white PDF.
My question is: Is it possible to open the PDFs in “black and white” by default?
Would love some input and insight on how to achieve this and if it is possible

Hi there,

Thank you for reaching out,

To enable monochrome view by default, you could do the following apply it via the documentLoaded event.
i.e.

instance.Core.documentViewer.addEventListener('documentLoaded', () =>{
    documentViewer.enableGrayscaleMode()
})

Best regards,
Kevin Kim