Giter VIP home page Giter VIP logo

Comments (5)

aaronrudkin avatar aaronrudkin commented on July 29, 2024

There are, I think, about three separate issues here:

  1. Updating our stylesheet for print media (so that the header, footer, sidebar, etc. does not appear)
  2. Making sure coloured images gracefully degrade into B&W
  3. Actually implementing a print button (this is pretty trivial).

I think actual "generate a PDF" functions are more common with, say, academic articles that start as PDFs than with dynamic websites with lots of interactive components. IIRC statically rendering offline and outside a browser is relatively difficult because it would rely on terminal Javascript and SVG emulation, neither of which common browser emulators like mechanize do.

As a result, I don't think it makes sense to directly implement a PDF button.

However, most browsers now have print-to-PDF capabilities. No idea if Windows 10 does natively, but you can use CutePDF or Foxit or other options to add a PDF print driver. OSX does natively at the system level. I would assume most Desktop linux distros do as well. Probably better to just make the print function look nice and then rely on users to select PDF as a print destination.

from webvoteview.

lukesonnet avatar lukesonnet commented on July 29, 2024

Not sure if this is the right place, but the resolution on the PNG downloads of ideological space figures is pretty rough.

from webvoteview.

aaronrudkin avatar aaronrudkin commented on July 29, 2024

I will take a look at what it looks like right now. I am sure there are parameters to help improve the look

from webvoteview.

lukesonnet avatar lukesonnet commented on July 29, 2024

I would like to add here that the downloadXLS feature and code is broken.

from webvoteview.

aaronrudkin avatar aaronrudkin commented on July 29, 2024

You can now print votes using your browser's print function, and it looks good. We don't degrade our colour maps to B&W--not sure if this is plausible--but the stylesheet is updated so some of the worst intrusions don't show up when printing, and I make a few other tweaks. Either way, a high school teacher can now print our stuff!

from webvoteview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.