Add a test for PDf version

This commit is contained in:
Kovid Goyal 2023-05-14 15:55:40 +05:30
parent 541c1d2036
commit 7969be3498
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -201,6 +201,8 @@ def test_podofo():
p.title = 'info title'
p.author = 'info author'
p.keywords = 'a, b'
if p.version != '1.1':
raise ValueError('Incorrect PDF version')
xmp_packet = metadata_to_xmp_packet(mi)
# print(p.get_xmp_metadata().decode())
p.set_xmp_metadata(xmp_packet)