Closed cxw-droid closed 3 months ago
@cxw-droid Thanks for stopping by! To answer your questions:
Open with Firefox
? Unfortunately, no.
I am sorry, but this is a restriction imposed by Firefox on us. As much as I also want this to work, Firefox does not let extensions access file:///
URLs (which is what it gets when you do the above action). Here is the relevant function (note how it says 'Firefox will always return false
'). It works when you drag and drop because then the extension gets the file itself in that case.pdfjs
, but I don't know how they work and why it would modify image colours. You would be better off asking this in the PDF.js repo, they can provide the correct method (if any).
Although I am also curious how it changes the image colours. I don't have Firefox at the moment to test, can you upload a screenshot of what you get?Thank you for your reply.
open with Firefox
after right clicking a pdf file. Is it possible after I open a pdf file this way, then click some add-on button (like the doqment
) to change its background color? Or you are using your own pdfjs
in doqment
and it is impossible to control the pdfjs
backed pdf viewer from Firefox?js
code to achieve this?@cxw-droid
pdfjs
viewer (the reason cited being that the viewer is not a webpage but is a "part of Firefox" 🤷🏼♂️).pdfjs.forcePageColors
is on (again in doqment you can control this from the expanded panel).
If you open a PDF with an actual photograph the image colors would be rendered as normal I expect.Closing as answered.
hello, thank you for your work.
about:config
in Firefox to get the same effect? When I setpdfjs.forcePageColors
totrue
andpdfjs.pageColorsBackground
to a hex value, it changes both the background and the image color in the pdf. In fact, I want to change the background color only.Thanks.