ssimms / pdfapi2

Create, modify, and examine PDF files in Perl
Other
15 stars 20 forks source link

PDF::API2::Basic::PDF::File::ship_out is not compliant to spec ISO 19005-1:2005, Clause: 6.1.8 #82

Open mcitterio opened 2 months ago

mcitterio commented 2 months ago

ISO 19005-1:2005, Clause: 6.1.8 The object number and generation number shall be separated by a single white-space character. The generation number and obj keyword shall be separated by a single white-space character. The object number and endobj keyword shall each be preceded by an EOL marker. The obj and endobj keywords shall each be followed by an EOL marker.

patch two line: from $fh->printf('%d %d obj ', $objnum, $objgen); to $fh->printf('%d %d obj'."\n", $objnum, $objgen); and from $fh->print(" endobj\n"); to $fh->print("\n"."endobj\n");