Pdf记录的民意调查报告0票

I (unfortunately) need to make a permanent record of a poll for regulatory purposes. How best to preserve a topic/post/poll as a permanent record

When I press Ctrl-P to create a pdf of the topic (in Firefox & Brave) the generated pdf shows:

  • For
  • Against

0 voters

When the pdf was generated, the (still open) poll actually had 6 voters on screen (6xFor, 0xAgainst).

1 个赞

Our printer version of the page is JS free, and looks like the votes are attributed via JS.

Putting this information in HTML would require a rename on every vote, making it prohibitively expensive.

Your best best is taking a screenshot of said poll. And for our print page, hiding vote numbers is the easiest solution…

1 个赞

Thanks for replying so quickly!

My workaround for now is to print to pdf and then edit/correct the pdf.

Hiding the error seems like a fairly weak step in the right direction. When I have to print a page, it seems fairly important to have (all) of the information on the page included - particularly the result of a poll, which is likely the crucial point of the topic!?

1 个赞

遇到了这个问题。这似乎是一个明显的 bug。消除 HTML 中的“0 votes”部分肯定会是一种改进,它根本就不应该存在。如果 noJS 无法显示投票,它就永远不应该显示“0 votes”。除非能够正确显示投票,否则它不应该提及任何关于投票的信息。

完整的修复可能涉及在 Discourse 中添加一个“print”函数,当有人想要打印包含投票的内容时,该函数会输出适当的 HTML。

1 个赞

我们可以为投票在打印 CSS 中进行快速修复吗?@awesomerobot

1 个赞

是的,这会将其隐藏起来,不被打印:

并且不被爬虫视图看到:

1 个赞