From 27f18e0f6724c3ff43637a47b516eaecd5fd74cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Sch=C3=B6ning?= <6223655+ams-tschoening@users.noreply.github.com> Date: Thu, 14 Feb 2019 17:20:00 +0100 Subject: [PATCH] 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 --- qpdf/qtest/qpdf.test | 1 + 1 file changed, 1 insertion(+) diff --git a/qpdf/qtest/qpdf.test b/qpdf/qtest/qpdf.test index b6b33977..e1da340a 100644 --- a/qpdf/qtest/qpdf.test +++ b/qpdf/qtest/qpdf.test @@ -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); }