Tuesday 19 February 2013

PDFviewer + HTMLtoPDF

A tabbed PDF viewer that displays documents lifesize at 100% zoom, and has a configuration file, and a HTML to PDF converter that preserves links.
  • The PDF viewer is qpdfview with an example configuration: ~/.config/qpdfview/qpdfview.conf
    
    [documentView]
    openUrl=true
    autoRefresh=true
    prefetch=true
    continuousMode=true
    scaleFactor=1
    scaleMode=0
    
    [mainWindow]
    trackRecentlyUsed=true
    restoreBookmarks=true
    
    [pageItem]
    decorateLinks=false
    
    It's also available from Debian repos.
  • The HTML to PDF converter is wkhtmltopdf. The package in Debian 6 is missing some features including adding links in the generated PDF file. One can either use the static binary or build it. An example of using the static binary:
    
    wkhtmltopdf-i386 -s Letter http://www.debian.org debian.pdf
    
  • A Firefox extension based on wkhtmltopdf is also available.
  • Links:
    wkhtmltopdf v0.9.9 manual
    http://nickvahalik.com/blog/finally-html-pdf-workflow-works