diff --git a/src/PDF/Object.hs b/src/PDF/Object.hs index 3788ffc..947ff75 100644 --- a/src/PDF/Object.hs +++ b/src/PDF/Object.hs @@ -319,7 +319,7 @@ structure :: Parser u Structure structure = Structure <$> (line "xref" *> xrefSubSection `sepBy` EOL.parser) - <*> (line "trailer" *> dictionary <* EOL.parser) + <*> (string "trailer" *> blank *> dictionary <* EOL.parser) updateXrefs :: XRefSection -> Map Offset Int -> (XRefSection, Int) updateXrefs xrefSection offsets = (