summaryrefslogtreecommitdiff
path: root/pdf_ext.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2007-09-30 19:27:12 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2007-09-30 19:27:12 +0200
commit9132de0c3ab297c35c190ddb1e754dbc5879b5db (patch)
tree0d5985fe3e63b2b75a4be6907ca6681696f8e876 /pdf_ext.py
parentf1300b194056ad5b76eb83b135a915dcf09a37a0 (diff)
downloadlogilab-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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf_ext.py b/pdf_ext.py
index c742262..c8ef64e 100644
--- a/pdf_ext.py
+++ b/pdf_ext.py
@@ -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)