About

Following crossed out text is deprecated since I fixed it permanantly on the code side.

There is a call in the dokuwiki html to <link> to the CSS stylesheet. Dokuwiki provides one <link> to the normal or screen stylesheet, and one to the print stylesheet. Therefore, when printing any of my wiki pages (resume specifically), it would come out totally different looking. See code below: <code html> <head> ... <link rel=”stylesheet” media=”screen” type=”text/css” href=”/lib/exe/css.php” /> <link rel=”stylesheet” media=”print” type=”text/css” href=”/lib/exe/css.php?print=1” /> ... </head> </code>

How to

If the above is changed to something like: <code html> <head> ... <link rel=”stylesheet” media=”screen” type=”text/css” href=”/lib/exe/css.php” /> <link rel=”stylesheet” media=”print” type=”text/css” href=”/lib/exe/css.php” /> ... </head> </code> ,it will then print in the same style as is shown on the web page. The code to change this permanently is located in /wiki/inc/template.php

I used Mozilla Firefox’s “Firebug” add-on to modify/remove the components that I didnt want. Examples are the Edit buttons, and top and bottom title bars with buttons for use on the website only.

I then saved the edited page locally with firefox’s Save Page As... and Web page, complete and in its own new directory.

You can mess with the local browsers zooming or scaling of the screen or printed objects, in order to get more on a printed page. File > Page Setup > 76% scale is what I used once.

You then can print to PDF on any mac. Yay!

 
resume/how_to_print_pdf_version.txt · Last modified: 02.09.2012 12:45 by 173.59.237.128
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki