Open zhl111 opened 1 year ago
Thanks for the report. The extension was supposed to remove the theme for the print view. For now, append the following CSS to the "Custom Styling" section of the options page.
@media print {
body {
--fg: #000 !important;
--bd: #000 !important;
--bg: #fff !important;
}
}
After the modification, the page can't output the PDF with dark background anymore. I don't want this feature to disappear, it used to be half light color and half dark color, what I want to solve is this problem, it is quite good to keep the option of dark background.
Clearly Reader 2022/10/26
You can refer to this plug-in, which outputs a better-looking pdf
Your plug-in output——Zoom: Default:
Your plug-in output——Zoom: 70%:
The 0.6.7
release has an improved print layout using the following CSS code:
@media print {
body[data-mode] {
--fg: #000;
--bd: #000;
--bg: #fff;
width: unset;
padding: 0;
margin: 0;
}
}
Just set the Margins
to the default value, and you will get a clean margin on all sides. Since this is not a perfect solution, I'll keep this open for code suggestions.