diff --git a/pdf.c b/pdf.c index fe155c14f2fb0985436f531439af76707f0c498e..b4d72c2d2de7c9a3e2f83c0370f1111b8763a6f3 100644 --- a/pdf.c +++ b/pdf.c @@ -997,7 +997,7 @@ init_parser(struct Env *aux) SEQ(h_many(nl), end), VIOL(SEQ(h_butnot(h_ch_range(0, 255), LIT("%%EOF"))), "(offset FROM END) Data after final %%EOF (severity=7)")))); - + H_RULE(xr_td, SEQ(xrefs, KW("trailer"), ws, dict)); H_RULE(hdr_junk, VIOL(h_many1(h_butnot(h_ch_range(0, 255), objdef)), @@ -1717,9 +1717,9 @@ p_xrefdata__m(HAllocator *mm__, const Dict *dict) * for field 3 (generation). in fact, these are the only defaults * defined by ISO 32000-1:2008 (PDF 1.7). * - * entry type field no. default value - * 1 (type) 1 - * 1 ("n") 3 (gen.) 0 + * entry type field no. default value + * 1 (type) 1 + * 1 ("n") 3 (gen.) 0 */ /* Size (required) - total size of xref table */ @@ -1762,7 +1762,7 @@ p_xrefdata__m(HAllocator *mm__, const Dict *dict) * * [t x y] with t,x,y > 0 full general form * [0 x y] with x,y > 0 only type-1 ("in use") entries - * [0 x 0] with x > 0 only type-1 entries, only offsets + * [0 x 0] with x > 0 only type-1 entries, only offsets * * however, though nonsensical, [t x 0] with t,x > 0 is not disallowed * by the spec; as long as all entries are of type 1, the xref data can