diff options
Diffstat (limited to 'poppler/PDFDoc.cc')
-rw-r--r-- | poppler/PDFDoc.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index f3383fc0..ed2dbba4 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -560,6 +560,10 @@ GBool PDFDoc::checkLinearization() { if (!hints) { hints = new Hints(str, linearization, getXRef(), secHdlr); } + if (!hints->isOk()) { + linearizationState = 2; + return gFalse; + } for (int page = 1; page <= linearization->getNumPages(); page++) { Object obj; Ref pageRef; |