From 131a21d36f68370c39b349b8c3628dac5ad8f73a Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sat, 20 Apr 2019 17:38:30 -0400 Subject: [PATCH] Document that linearize disables qdf (fixes #312) --- manual/qpdf-manual.xml | 7 +++++-- qpdf/qpdf.cc | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index d43d96a6..c2df34bf 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -1826,7 +1826,8 @@ outfile.pdf Turns on QDF mode. For additional information on QDF, please - see . + see . Note that + disables QDF mode. @@ -2364,7 +2365,9 @@ outfile.pdf some restrictions, in an ordinary text editor. This can be very useful for experimenting with different PDF constructs or for making one-off edits to PDF files (though there are other reasons - why this may not always work). + why this may not always work). Note that QDF mode does not support + linearized files. If you enable linearization, QDF mode is + automatically disabled. It is ordinarily very difficult to edit PDF files in a text editor diff --git a/qpdf/qpdf.cc b/qpdf/qpdf.cc index dec88241..86c0b7a5 100644 --- a/qpdf/qpdf.cc +++ b/qpdf/qpdf.cc @@ -1378,7 +1378,8 @@ ArgParser::argHelp() << " including DCT (JPEG)\n" << "\n" << "In qdf mode, by default, content normalization is turned on, and the\n" - << "stream data mode is set to uncompress.\n" + << "stream data mode is set to uncompress. QDF mode does not support\n" + << "linearized files. The --linearize flag disables qdf mode.\n" << "\n" << "Setting the minimum PDF version of the output file may raise the version\n" << "but will never lower it. Forcing the PDF version of the output file may\n"