Loading...
 
Skip to main content

History: Print

Source of version: 31 (current)

Copy to clipboard
             See also: ((Typography))


[http://stackoverflow.com/questions/12302819/how-to-create-a-printable-twitter-bootstrap-page]


[http://dev.tiki.org/Print] 
{maketoc title=""}

## Print options

- When printing, there should be a bunch of available options (WikiPublisher.org is a great example)
- Most common options are shown by default, and the others in an advanced tab
- Since users tend to each have preferred default settings, system should remember last recent print. Ex. with cookies
- Default options are Tiki prefs. overridable by perspective

### List of options

#### Tiki options

- With / without logo / header
- With / without footer 
    - Option to show / hide: The original document is available at ... (which by the way doesn't site language)
- Cover page
- Table of Content -> Ideas to improve at ((dev:maketoc)) 
    - JavaScript
    - Via wkhtmltopdf
    - None
- Embellish text via ((typography)) lib.
- Links 
    - Hide
    - Show underline and external link icon
    - Put link as footnote
    - Put link just after label
- PluginMouseOver 
    - Hide
    - Show as sidenote
    - Show as footer
- PluginTabs 
    - Print current
    - Print all
- + / - for headers and bullet list, or PluginFade 
    - Print current
    - Open all
- PluginVersions 
    - Print current
    - Print all

#### Feature option

- Wiki page may have different options than printing a tracker item

#### Print engine alternatives

- mPDF is a very powerful PHP library
- wkhtmltopdf is the reference PDF generator and has many options: http://wkhtmltopdf.org/usage/wkhtmltopdf.txt 
    - phpwkhtmltopdf and Snappy should make them all available to Tiki
- WeasyPrint is a Python library
- PhantomJS would be an interesting alternative: http://phantomjs.org/api/webpage/property/paper-size.html 
    - https://github.com/jonnnnyw/php-phantomjs
- SlimerJS now has PDF options: https://github.com/laurentj/slimerjs/pull/195

{HTML()}<script type='text/javascript' src='https://www.openhub.net/p/slimerjs/widgets/project_factoids_stats?format=js'></script>{HTML}

#### Print engine options

See [http://www.mpdfonline.com/repos/mpdfmanual.pdf|mPDF manual] for a large number of examples

- PDF outlines 
    - Table of content -> Ideas to improve at: ((dev:maketoc))
- Header / Footer (Page numbers, title, date / time of print)
- Watermark
- Page sizes (A4, letter, etc) and options
- Print as user X or group Y, which can use to personalize or redact text. Can we use PluginGroup or should be go for creating a PluginRedact?
- etc.

## Other ideas

- It would be nice to use a wiki page to make the template to layout the header / footer / etc.
- Maybe there should be a way to override some mPDF params via a wiki plugin? ex: force a page break. This page in landscape mode. force another page break. This page in portrait mode. Ex.: {print break=page} {print layout=portrait}

## Related links

- http://www.sitepoint.com/10-jquery-print-page-options/



{DIV(class=titlebar)} alias {DIV}
 - (alias(Bootstrap print))
        

History

Information Version
06:25 UTC System Administrator automatic conversion 31
Sun 20 of Mar, 2016 20:29 UTC Marc Laporte 30
Sun 20 of Mar, 2016 20:23 UTC Marc Laporte 29
Sun 20 of Mar, 2016 20:14 UTC Marc Laporte 28
Sun 13 of Sep, 2015 19:12 UTC Marc Laporte 27
Thu 03 of Sep, 2015 00:46 UTC Marc Laporte 26
Mon 31 of Aug, 2015 16:22 UTC Marc Laporte 25
Mon 31 of Aug, 2015 16:20 UTC Marc Laporte 24
Mon 31 of Aug, 2015 16:19 UTC Marc Laporte 23
Mon 31 of Aug, 2015 06:19 UTC Marc Laporte 22
Mon 31 of Aug, 2015 06:17 UTC Marc Laporte 21
Sun 16 of Aug, 2015 17:44 UTC Marc Laporte 20
Wed 12 of Aug, 2015 18:58 UTC Marc Laporte 19
Mon 03 of Aug, 2015 05:27 UTC Marc Laporte 18
Sat 25 of Jul, 2015 04:05 UTC Marc Laporte 17
Tue 21 of Jul, 2015 11:25 UTC Marc Laporte 16
Tue 21 of Jul, 2015 02:33 UTC Marc Laporte 15
Tue 21 of Jul, 2015 02:29 UTC Marc Laporte 14
Tue 21 of Jul, 2015 02:03 UTC Marc Laporte 13
Tue 21 of Jul, 2015 02:00 UTC Marc Laporte 12
Tue 21 of Jul, 2015 01:59 UTC Marc Laporte 11
Tue 21 of Jul, 2015 01:57 UTC Marc Laporte 10
Tue 21 of Jul, 2015 01:44 UTC Marc Laporte 9
Tue 21 of Jul, 2015 01:32 UTC Marc Laporte 8
Tue 21 of Jul, 2015 01:23 UTC Marc Laporte 7
Tue 21 of Jul, 2015 01:19 UTC Marc Laporte 6
Tue 21 of Jul, 2015 01:17 UTC Marc Laporte 5
Tue 21 of Jul, 2015 01:10 UTC Marc Laporte 4
Sat 18 of Jul, 2015 16:49 UTC Marc Laporte 3
Sat 18 of Jul, 2015 16:38 UTC Marc Laporte 2
Thu 28 of Nov, 2013 18:50 UTC Marc Laporte 1
Collapse/expand modules below
Show PHP error messages