reader-view icon indicating copy to clipboard operation
reader-view copied to clipboard

Can you improve the printout? thank you

Open zhl111 opened this issue 3 years ago • 4 comments

image

zhl111 avatar Oct 24 '22 07:10 zhl111

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;
  }
}

rNeomy avatar Oct 24 '22 08:10 rNeomy

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.

zhl111 avatar Oct 26 '22 14:10 zhl111

  • Clearly Reader 2022/10/26

  • You can refer to this plug-in, which outputs a better-looking pdf image

  • Your plug-in output——Zoom: Default: image

  • Your plug-in output——Zoom: 70%: image

zhl111 avatar Oct 26 '22 14:10 zhl111

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.

rNeomy avatar Oct 30 '22 09:10 rNeomy