2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-06-01 01:40:51 +00:00

The kfo-PDF files for testing need to be copied using "binmode" or Windows will introduce \r\n.

qpdf: selecting --keep-open-files=n
qpdf: processing 001-kfo.pdf
WARNING: 001-kfo.pdf: file is damaged
WARNING: 001-kfo.pdf (offset 556): xref not found
WARNING: 001-kfo.pdf: Attempting to reconstruct cross-reference table
This commit is contained in:
Thorsten Schöning 2019-02-14 17:20:00 +01:00 committed by Thorsten Schöning
parent fc2e491f74
commit 27f18e0f67

View File

@ -1675,6 +1675,7 @@ $n_tests += 4;
for (my $i = 1; $i <= 201; ++$i)
{
open(F, sprintf(">%03d-kfo.pdf", $i)) or die;
binmode F;
print F $content;
close(F);
}