This commit is contained in:
Kovid Goyal 2023-09-12 22:16:21 +05:30
parent 97ecdad95e
commit c118d19e38
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -204,6 +204,13 @@ def test_save_to(src, dest):
print('Wrote PDF of size:', out.tell()) print('Wrote PDF of size:', out.tell())
def test_roundtrip(src, dest):
podofo = get_podofo()
p = podofo.PDFDoc()
p.open(src)
p.save(dest)
def test_podofo(): def test_podofo():
import tempfile import tempfile
from calibre.ebooks.metadata.book.base import Metadata from calibre.ebooks.metadata.book.base import Metadata