|
|
@ -1,11 +1,9 @@ |
|
|
|
import pdfrw |
|
|
|
import pdfrw |
|
|
|
import subprocess |
|
|
|
import subprocess |
|
|
|
import itertools |
|
|
|
|
|
|
|
import tempfile |
|
|
|
import tempfile |
|
|
|
|
|
|
|
|
|
|
|
from pathlib import Path |
|
|
|
from pathlib import Path |
|
|
|
from reportlab.pdfgen import canvas |
|
|
|
from reportlab.pdfgen import canvas |
|
|
|
from reportlab.lib.units import mm |
|
|
|
|
|
|
|
from reportlab.lib.pagesizes import A4 |
|
|
|
from reportlab.lib.pagesizes import A4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -48,5 +46,3 @@ def fill(original_form, values, draw_function, output_file="filled.pdf"): |
|
|
|
# write the combined file to the output |
|
|
|
# write the combined file to the output |
|
|
|
pdfrw.PdfWriter().write(output_file, form) |
|
|
|
pdfrw.PdfWriter().write(output_file, form) |
|
|
|
subprocess.run(["open", output_file]) |
|
|
|
subprocess.run(["open", output_file]) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|