Open myrkraverk opened 7 years ago
The specification does not explicitly forbids this, but the specification is unclear and ambiguous in many ways and rarely goes into these kind of details. In Caradoc, we made a strict choice of rejecting ambiguous inputs by default.
We may add an option to allow this behavior in the relaxed parser, as we have already done for common errors found in the wild.
As for the strict parser (triggered with the --strict
option), comments are not allowed (because they add complexity and can also lead to further ambiguity), so your example would be rejected anyway.
Caradoc fails with unexpected character if there's a comment between the xref and trailer; yet I find nothing in the spec from Adobe that prohibits this.
Example:
When
% this here is a comment
is removed and a blank line left, caradoc displays the xref. The pdf is otherwise (probably) invalid.Please provide chapter and verse if the spec explicitly disallows comments between the xref and trailer.