location: qfq

Institute of Mathematics - PublicMathWiki:

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 8 as of 2017-05-22 10:44:24

QFQ

Links

Tipps & Tricks

wkhtmltopdf

  • Tabelle, A4 optimieirt, PO Boxen

qfq-Beispiel, wie eine Seite als PDF ausgegeben werden kann (Browser-unabhaengig):

 SELECT 'c:hidden-print|d:P.O. Boxes.pdf|U:id=poboxes&--orientation=Landscape&--print-media-type|t:Download List as PDF' AS _pdf 

Erklaerung der einzelnen Elemente: * c:hidden-print - bootstrap-Klasse, die den Button beim Ausdruck ausblendet * --orientation=Landscape - Default waere --orientation=Portrait (je nach Seite ist Landscape besser) * --print-media-type - der Ausdruck wird mit print media type aufgerufen, d.h. er laesst sich mittels CSS relativ einfach stylen (siehe unten fuer Beispiel)

Beispiel: print media css

@media print {
  a[href]:after {
    content: none;
  }
  .uzh-header, .uzh-footer-area>.col-md-3, .uzh-content-area>.col-md-3,
  .uzh-top-line .search, .uzh-footer-top {
    display: none;
  }
  .uzh-content-area>.col-md-9, .uzh-footer-area>.col-md-9 {
    width: 100% !important;
  }
}