Fix failure to prevent use of Ghostscript on /UserUnit files

This commit is contained in:
James R. Barlow
2018-05-04 13:34:34 -07:00
parent b3ad3e297d
commit 5c8a007f3e

View File

@@ -222,7 +222,7 @@ def repair_and_parse_pdf(
pdfinfo = PdfInfo(output_file)
if pdfinfo.has_userunit and options.output_type == 'pdfa':
if pdfinfo.has_userunit and options.output_type.startswith('pdfa'):
log.error(
"This input file uses a PDF feature that is not supported "
"by Ghostscript, so you cannot use --output-type=pdfa for this "