diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-12-23 03:45:10 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-23 03:45:10 +0100 |
commit | 7c0fdf8510fbc09a6a8f872d1c95f1d6e1709f28 (patch) | |
tree | 27e95477224c614b8da1d15380903c49bc527ee7 /examples | |
parent | c0c7cef16cb666524e4809834063cfee5262eca1 (diff) | |
download | qpdf-7c0fdf8510fbc09a6a8f872d1c95f1d6e1709f28.tar.zst |
Format code, bump clang-format version to 18
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pdf-invert-images.cc | 3 | ||||
-rw-r--r-- | examples/pdf-overlay-page.cc | 4 | ||||
-rw-r--r-- | examples/qpdf-job.cc | 10 | ||||
-rw-r--r-- | examples/qpdfjob-c.c | 2 |
4 files changed, 9 insertions, 10 deletions
diff --git a/examples/pdf-invert-images.cc b/examples/pdf-invert-images.cc index 4ec83b84..d3037984 100644 --- a/examples/pdf-invert-images.cc +++ b/examples/pdf-invert-images.cc @@ -15,8 +15,7 @@ void usage() { std::cerr << "Usage: " << whoami << " infile.pdf outfile.pdf [in-password]" << std::endl - << "Invert some images in infile.pdf;" - << " write output to outfile.pdf" << std::endl; + << "Invert some images in infile.pdf; write output to outfile.pdf" << std::endl; exit(2); } diff --git a/examples/pdf-overlay-page.cc b/examples/pdf-overlay-page.cc index 75577094..97ee8024 100644 --- a/examples/pdf-overlay-page.cc +++ b/examples/pdf-overlay-page.cc @@ -16,8 +16,8 @@ void usage() { std::cerr << "Usage: " << whoami << " infile pagefile outfile" << std::endl - << "Stamp page 1 of pagefile on every page of infile," - << " writing to outfile" << std::endl; + << "Stamp page 1 of pagefile on every page of infile, writing to outfile" + << std::endl; exit(2); } diff --git a/examples/qpdf-job.cc b/examples/qpdf-job.cc index 99b853ea..3e6e99bd 100644 --- a/examples/qpdf-job.cc +++ b/examples/qpdf-job.cc @@ -11,10 +11,10 @@ static void usage() { std::cerr << "Usage: " << whoami << std::endl - << "This program linearizes the first page of in.pdf to out1.pdf," - << " out2.pdf, and" << std::endl - << " out3.pdf, each demonstrating a different way to use the" - << " QPDFJob API" << std::endl; + << "This program linearizes the first page of in.pdf to out1.pdf, out2.pdf, and" + << std::endl + << " out3.pdf, each demonstrating a different way to use the QPDFJob API" + << std::endl; exit(2); } @@ -43,7 +43,7 @@ main(int argc, char* argv[]) ->pageSpec(".", "1") ->endPages() ->linearize() - ->staticId() // for testing only + ->staticId() // for testing only ->compressStreams("n") // avoid dependency on zlib output ->checkConfiguration(); j.run(); diff --git a/examples/qpdfjob-c.c b/examples/qpdfjob-c.c index 6dd68283..e4f6fdf1 100644 --- a/examples/qpdfjob-c.c +++ b/examples/qpdfjob-c.c @@ -42,7 +42,7 @@ main(int argc, char* argv[]) new_argv[1] = infile; new_argv[2] = outfile; new_argv[3] = "--linearize"; - new_argv[4] = "--static-id"; /* for testing only */ + new_argv[4] = "--static-id"; /* for testing only */ new_argv[5] = "--compress-streams=n"; /* avoid dependency on zlib output */ new_argv[6] = NULL; |