Commit 08d4f02c authored by Tobias Deiminger's avatar Tobias Deiminger

Fix parsing of line annotation LE values

AnnotLine::initialize used to look for strings, which is wrong,
because PDF reference says "LE [...] An array of two names".
parent f1575bb7
......@@ -2971,16 +2971,20 @@ void AnnotLine::initialize(PDFDoc *docA, Dict *dict) {
Object obj2;
obj2 = obj1.arrayGet(0);
if (obj2.isString())
startStyle = parseAnnotLineEndingStyle(obj2.getString());
else
if (obj2.isName()) {
GooString leName(obj2.getName());
startStyle = parseAnnotLineEndingStyle(&leName);
} else {
startStyle = annotLineEndingNone;
}
obj2 = obj1.arrayGet(1);
if (obj2.isString())
endStyle = parseAnnotLineEndingStyle(obj2.getString());
else
if (obj2.isName()) {
GooString leName(obj2.getName());
endStyle = parseAnnotLineEndingStyle(&leName);
} else {
endStyle = annotLineEndingNone;
}
} else {
startStyle = endStyle = annotLineEndingNone;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment