view MoinMoin/filter/application_pdf.py @ 3027:6dcc9617bab6

Fix for WrongAlignedAttachment (Thanks to Benjamin Weber) (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 03 Feb 2008 17:57:42 +0100
parents 01f05e74aa9c
children 4e904da48c4c
line wrap: on
line source
# -*- coding: iso-8859-1 -*-
"""
    MoinMoin - PDF filter

    Depends on: pdftotext command from xpdf-utils package

    @copyright: 2006 MoinMoin:ThomasWaldmann
    @license: GNU GPL, see COPYING for details.
"""

from MoinMoin.filter import execfilter

def execute(indexobj, filename):
    return execfilter("pdftotext -enc UTF-8 '%s' -", filename)