diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-05-21 19:35:09 +0200 |
commit | 60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2 (patch) | |
tree | a707602da466c02ff1a54b3263c3a881cd7204a4 /examples/pdf-set-form-values.cc | |
parent | 6b077332d38c093de2618d5e1481b42222106065 (diff) | |
download | qpdf-60965d5f4d608bdccc2ffd4e8753e12cbbbd71d2.tar.zst |
Rerun clang-format
Diffstat (limited to 'examples/pdf-set-form-values.cc')
-rw-r--r-- | examples/pdf-set-form-values.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/pdf-set-form-values.cc b/examples/pdf-set-form-values.cc index a41cb3f7..c2793142 100644 --- a/examples/pdf-set-form-values.cc +++ b/examples/pdf-set-form-values.cc @@ -11,10 +11,8 @@ static char const* whoami = nullptr; void usage() { - std::cerr << "Usage: " << whoami << " infile.pdf outfile.pdf value" - << std::endl - << "Set the value of all text fields to a specified value" - << std::endl; + std::cerr << "Usage: " << whoami << " infile.pdf outfile.pdf value" << std::endl + << "Set the value of all text fields to a specified value" << std::endl; exit(2); } @@ -55,8 +53,7 @@ main(int argc, char* argv[]) for (auto& annot: afdh.getWidgetAnnotationsForPage(page)) { // For each annotation, find its associated field. If // it's a text field, set its value. - QPDFFormFieldObjectHelper ffh = - afdh.getFieldForAnnotation(annot); + QPDFFormFieldObjectHelper ffh = afdh.getFieldForAnnotation(annot); if (ffh.getFieldType() == "/Tx") { // Set the value. Passing false as the second // value prevents qpdf from setting @@ -79,8 +76,7 @@ main(int argc, char* argv[]) w.setStaticID(true); // for testing only w.write(); } catch (std::exception& e) { - std::cerr << whoami << " processing file " << infilename << ": " - << e.what() << std::endl; + std::cerr << whoami << " processing file " << infilename << ": " << e.what() << std::endl; exit(2); } |