Zim

Comment 10 for bug 206168

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 206168] Re: Add printing support

On Fri, Sep 24, 2010 at 3:50 AM, nomnex <email address hidden> wrote:
> I sometimes print man pages
> using the command man -t (or --troff) command > ~/command.pdf.  Couldn't
> Zim use a similar command to print to PS or PDF in a WYSIWYG manner?

Uhm yes, but that still means we need code to render a zim page into
PS or PDF. We can do that using latex, but I don't want to have a
dependency on the latex package (which is huge) just or printing.

The new Gtk printing interface is exactly that: an API to render a PS
which is handed to a platform depended printer interface.

> Relying on the browser printing functionality has some downsides:
> I use "minium font size" in the browser pref. and large font (DejaVu Sans) for onscreen display. I have to disable the setting and change font/font size anytime I want to print.
> The page header/footer are not well positioned on the pages. If I manually change the page margins from the browser page setup. it somewhat conflicts with the CSS margin and the page are truncated when they print.

Yes, it is a workaround, direct printing would be better.

-- Jaap