Canadian Mysteries

  • Front Page
  • Contact
  • Log in
  • « Remove wrongly captioned image from archive
  • french teaching unit uploaded »

experiment with print style css

Posted by sarneil on 09 Sep 2015 in Activity log

LD asked about print output of all the Franklin pages in one big (PDF) file.

To do a real job of this, I guess I could write some kind of translation using Apache FOP, but I can't justify the time and effort.

Did some experimenting with a @media print block of selectors for outputting plain black text on white background for printing. Added the selectors to the FranklinLayoutDev.css file. By and large it works, but images for some reason cause page breaks to appear unexpectedly in the PDF (for example Voyage/introduction). If I remove the "@media print" selector, then the rules apply to the screen output as well, and the images don't force a page break, but all the other behaviour works as it does for the PDF output. In principle, with a few more hours work I could probably get pretty clean output one web-page at a time, and then someone would have to generate a PDF of each page and then and assemble them into one big PDF.

This entry was posted by Stewart and filed under Activity log.

Canadian Mysteries

The Canadian Mysteries site consists of a production site containing 12 mysteries, a containing shell and 30 mysteryquests; and a database-driven development site. HCMC took over tech support in summer 08. This blog documents work done on the site from Sept 08. Earlier work is documented in the depts blog in posts prepended with CanMys
  • Home
  • Recently
  • Archives
  • Categories
  • Latest comments

Search

Categories

  • All
  • Activity log
  • Announcements
  • Tasks

XML Feeds

  • RSS 2.0: Posts
  • Atom: Posts
More on RSS

Recent Posts

  • Added Sarah Taekema as new Mysteries Admin
  • fix urlencode problem on photo.php pages
  • Batch process images
  • moved learning materials pages
  • de-orphaning links pages on Franklin site
  • Request for teacher locations
  • fix broken links in mysteryquest
  • change backend database pointers
  • landing pages for parks canada
  • Franklin Google search styled

Sidebar 2

This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".

This collection ©2022 by admin • Help • b2