Registro em PDF de relatórios de pesquisa 0 votos

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 curtida

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 curtida

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 curtida

Acabei de me deparar com isso. Parece um bug claro. Seria certamente uma melhoria eliminar a parte "0 votos" do HTML, que nem deveria existir. Se o noJS não consegue mostrar votos, ele nunca deve mostrar "0 votos". Não deveria dizer nada sobre votos, a menos que possa mostrá-los corretamente.

A correção completa provavelmente envolveria uma função "print" adicionada ao Discourse que, na verdade, então gera o HTML apropriado quando alguém quer fazer uma versão impressa de algo que inclui uma enquete.

1 curtida

Podemos fazer um quick fix no CSS de impressão para as enquetes, @awesomerobot?

1 curtida

Sim, isso o oculta da impressão:

e da visualização do rastreador:

1 curtida