Pdf record of poll reports 0 votes

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 Like

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 Like

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 Like

Just ran into this. Seems a clear bug. Would be certainly an improvement to eliminate the ā€œ0 votesā€ part from HTML, that shouldnā€™t even exist. If noJS canā€™t show votes, it should never show ā€œ0 votesā€. It shouldnā€™t say anything about votes unless it can show them correctly.

The full fix would probably involve a ā€œprintā€ function added to Discourse that actually then outputs the appropriate HTML when someone wants to make a print version of something that includes a poll.

1 Like

Can we do a quick fix in the print CSS for polls @awesomerobot ?

1 Like

Yeah this hides it from print:

and from crawler view:

1 Like