diff --git a/cpdfcommand.ml b/cpdfcommand.ml index c67ce45..a5b0c03 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -3410,7 +3410,7 @@ let go () = | _ -> error "Copy Box: bad command line" end | Some Decompress -> - let pdf = get_single_pdf (Some Decompress) true in + let pdf = get_single_pdf (Some Decompress) false in Pdf.iter_stream (function stream -> try Pdfcodec.decode_pdfstream_until_unknown pdf stream with diff --git a/hello.pdf b/hello.pdf new file mode 100644 index 0000000..62d744c --- /dev/null +++ b/hello.pdf @@ -0,0 +1,29 @@ +%PDF-1.1 +% +1 0 obj +<> +endobj +2 0 obj +<> +stream +1 0 0 1 50 770 cm BT/F0 36 Tf(Hello, World!)Tj ET +endstream +endobj +3 0 obj +<>>>>>/MediaBox[0 0 595.275590551 841.88976378]/Rotate 0/Contents[2 0 R]>> +endobj +4 0 obj +<> +endobj +xref +0 5 +0000000000 65535 f +0000000015 00000 n +0000000066 00000 n +0000000163 00000 n +0000000348 00000 n +trailer +<> +startxref +393 +%%EOF