diff options
author | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2007-09-30 19:27:12 +0200 |
---|---|---|
committer | Nicolas Chauvat <nicolas.chauvat@logilab.fr> | 2007-09-30 19:27:12 +0200 |
commit | 9132de0c3ab297c35c190ddb1e754dbc5879b5db (patch) | |
tree | 0d5985fe3e63b2b75a4be6907ca6681696f8e876 /pdf_ext.py | |
parent | f1300b194056ad5b76eb83b135a915dcf09a37a0 (diff) | |
download | logilab-common-9132de0c3ab297c35c190ddb1e754dbc5879b5db.tar.gz |
adapt tests to prototype change for pdf_ext.fill_pdf()
Diffstat (limited to 'pdf_ext.py')
-rw-r--r-- | pdf_ext.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -88,10 +88,10 @@ def fill_pdf(infile, outfile, fields): write_fields(file('/tmp/toto.fdf', 'w'), fields) os.system('pdftk %s fill_form /tmp/toto.fdf output %s flatten' % (infile, outfile)) -def testfill_pdf(filename): - keys = extract_keys_from_pdf(filename) +def testfill_pdf(infile, outfile): + keys = extract_keys_from_pdf(infile) fields = [] for key in keys: fields.append( (key, key, '') ) - fill_pdf(filename, '_'+filename, fields) + fill_pdf(infile, outfile, fields) |