diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2022-11-18 09:31:42 +0000 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2022-11-18 09:31:42 +0000 |
commit | fcc99337adc37a92e498fd35d02e921f946c684d (patch) | |
tree | 72c587f0aa04eeaf0322431d2537d35c5f1f100b /pdf/pdf_errors.h | |
parent | 188b861a60b0c19a21f1d4a8e7026149ac6ef731 (diff) | |
download | ghostpdl-fcc99337adc37a92e498fd35d02e921f946c684d.tar.gz |
GhostPDF - minor change with broken named destinations
Follow-on from commit1042469a5225ff063c465e61dbd3ebb50c770006, the
customer didn't like the fact that we were dropping the Link annotations
from the document.
This happened because the value associated with the /Dest key was neither
a dictionary nor an array (as it is specified to be), but was a null
object. Which caused an error, so we dropped the annotation.
Previously (old interpreter and prior versions of pdfi) we retained the
Link annotation and dropped the Dest, which still makes it invalid of
course....
This commit simply restores that behaviour, while noting the error for
reporting at the end.
Diffstat (limited to 'pdf/pdf_errors.h')
-rw-r--r-- | pdf/pdf_errors.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pdf/pdf_errors.h b/pdf/pdf_errors.h index e2ccbea9b..4fed1522d 100644 --- a/pdf/pdf_errors.h +++ b/pdf/pdf_errors.h @@ -65,4 +65,5 @@ PARAM(E_PDF_UNMATCHEDMARK, "A closing mark (] or >>) had no matching PARAM(E_PDF_BADPAGECOUNT, "page tree root node /Count did not match the actual number of pages in the tree."), PARAM(E_PDF_NO_ROOT, "Can't find the document Catalog"), PARAM(E_PDF_BAD_ROOT_TYPE, "Document Catalog has incorrect /Type"), +PARAM(E_PDF_BAD_NAMED_DEST, "An annotation has an invalid named destination"), #undef PARAM |