Remove Ghostscript UserUnit warning

All supported Ghostscript versions have proper UserUnit support.
This commit is contained in:
James R. Barlow
2023-04-29 00:42:38 -07:00
parent fcbdeb8dbe
commit fe9f52fbe7
2 changed files with 3 additions and 17 deletions
-9
View File
@@ -185,15 +185,6 @@ def validate_pdfinfo_options(context: PdfContext) -> None:
"Designer and can only be read by Adobe Acrobat or Adobe Reader."
)
raise InputFileError()
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 "
"file. (Specifically, it uses the PDF-1.6 /UserUnit feature to "
"support very large or small page sizes, and Ghostscript cannot "
"output these files.) Use --output-type=pdf instead."
)
raise InputFileError()
if pdfinfo.has_acroform:
if options.redo_ocr:
log.error(