mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add a simple append test for PDF
This commit is contained in:
parent
6e990c3c15
commit
e454b0c6d4
@ -243,6 +243,13 @@ def test_podofo():
|
|||||||
del p
|
del p
|
||||||
finally:
|
finally:
|
||||||
os.remove(f.name)
|
os.remove(f.name)
|
||||||
|
a = podofo.PDFDoc()
|
||||||
|
a.load(raw)
|
||||||
|
b = podofo.PDFDoc()
|
||||||
|
b.load(raw)
|
||||||
|
a.append(b)
|
||||||
|
if a.page_count() != 2 * b.page_count():
|
||||||
|
raise ValueError('Appending failed')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user