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");
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");