vbuch / node-signpdf

Simple signing of PDFs in node.
MIT License
676 stars 174 forks source link

EOF Error #217

Closed AviramBaranes closed 5 months ago

dhensby commented 6 months ago

Is a carriage return in a PDF file actually allowed within the PDF specification?

vbuch commented 6 months ago

Yes @dhensby

Quoting the specs:

The carriage return (CR) and line feed (LF) characters, also called newline characters, are treated as end-of-line (EOL) markers. The combination of a carriage return followed immediately by a line feed is treated as one EOL marker.

vbuch commented 6 months ago

Because this is not even built, I cannot just merge it. Will try to do the merge and build and look around for other places where this is broken. Hopefully soon.