forked from josch/plakativ
call fitz.close() after processing
This commit is contained in:
parent
94ebd8ed0a
commit
012075430a
2 changed files with 2 additions and 0 deletions
|
@ -2005,6 +2005,7 @@ option""",
|
|||
plakativ = Plakativ(doc, pagenr)
|
||||
plakativ.compute_layout(mode, size, mult, npages, pagesize, border, strategy)
|
||||
plakativ.render(outfile, cover, guides, numbers, poster_border)
|
||||
doc.close()
|
||||
|
||||
|
||||
def gui(filename=None):
|
||||
|
|
|
@ -172,6 +172,7 @@ def test_cases(postersize, input_pagesize, output_pagesize, strategy, expected):
|
|||
)
|
||||
os.close(fd)
|
||||
doc.save(infile, pretty=True, expand=255)
|
||||
doc.close()
|
||||
|
||||
fd, outfile = tempfile.mkstemp(prefix="plakativ")
|
||||
os.close(fd)
|
||||
|
|
Loading…
Reference in a new issue