Prevent Ghostscript from generating invalid XMP metadata

If DocumentInfo contains NULs Ghostscript will generate XMP with
NULs which is not allowed. Repair DocumentInfo before Ghostscript sees it.
This commit is contained in:
James R. Barlow
2019-01-04 13:20:41 -08:00
parent 089ece2715
commit f34b3015b2
7 changed files with 71 additions and 2 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ setup(
'cffi >= 1.9.1', # must be a setup and install requirement
'img2pdf >= 0.3.0, < 0.4', # pure Python, so track HEAD closely
'pdfminer.six == 20181108 ; sys_platform != "darwin"',
'pikepdf >= 0.10.2, < 0.11.0',
'pikepdf >= 1.0.1, < 2',
'Pillow >= 4.0.0, != 5.1.0 ; sys_platform == "darwin"',
# Pillow < 4 has BytesIO/TIFF bug w/img2pdf 0.2.3
# block 5.1.0, broken wheels