Commit e424a13b authored by Thomas Freitag's avatar Thomas Freitag Committed by Albert Astals Cid

pdfseparate fixes by Thomas after his last commit

parent 0089357d
......@@ -1340,10 +1340,16 @@ void PDFDoc::replacePageDict(int pageNo, int rotate,
void PDFDoc::markPageObjects(Dict *pageDict, XRef *xRef, XRef *countRef, Guint numOffset)
{
pageDict->remove("Names");
pageDict->remove("OpenAction");
pageDict->remove("Outlines");
pageDict->remove("StructTreeRoot");
for (int n = 0; n < pageDict->getLength(); n++) {
const char *key = pageDict->getKey(n);
Object value; pageDict->getValNF(n, &value);
if (strcmp(key, "Parent") != 0) {
if (strcmp(key, "Parent") != 0 &&
strcmp(key, "Pages") != 0) {
markObject(&value, xRef, countRef, numOffset);
}
value.free();
......
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