diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2021-11-08 13:37:03 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2021-11-08 13:37:03 +0000 |
commit | 1538a3cf288d935645f8b9d2caac79d802c8f4c0 (patch) | |
tree | 99e4c3c37e29d0ab791f79e40c10e398561f932b /pdf/ghostpdf.h | |
parent | 3f84ac0435ff4ddbc7dd3c8514fd7cae299bc0ca (diff) | |
download | ghostpdl-1538a3cf288d935645f8b9d2caac79d802c8f4c0.tar.gz |
GhostPDF - clamp invalid constant alpha values
Bug 704700 "PDF to PNG - Dropping annotations"
The annotations all use an ExtGState which has CA and ca values of 255.
The spec is clear that valid values lie in the range 0.0 to 1.0.
While this is an example of an invalid file we can render it correctly
by clamping out of rang values to the top or bottom of the range, and
this commit does that, along with adding a new warning that this has
been done.
We don't plan to address this in the old PostScript-based interpreter.
Diffstat (limited to 'pdf/ghostpdf.h')
-rw-r--r-- | pdf/ghostpdf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf/ghostpdf.h b/pdf/ghostpdf.h index 11aa6ab60..833ebaf5d 100644 --- a/pdf/ghostpdf.h +++ b/pdf/ghostpdf.h @@ -128,6 +128,7 @@ typedef enum pdf_warning_e { W_PDF_INVALID_REAL, W_PDF_DEVICEN_USES_ALL, W_PDF_BAD_MEDIABOX, + W_PDF_CA_OUTOFRANGE, W_PDF_MAX_WARNING /* Must be last entry, add new warnings immediately before this and update pdf_warning_strings in ghostpdf.c */ } pdf_warning; |