aboutsummaryrefslogtreecommitdiffstats
path: root/include/qpdf/Constants.h
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-08 15:18:08 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-08 17:51:15 +0100
commitcb769c62e55599e9f980001830bc61d9fcaa64a9 (patch)
tree0bf980c385a61cbc8720cf990762ffc1200f9d6a /include/qpdf/Constants.h
parent716381f65a2b2dc72f8da2426ba71aeab02c507f (diff)
downloadqpdf-cb769c62e55599e9f980001830bc61d9fcaa64a9.tar.zst
WHITESPACE ONLY -- expand tabs in source code
This comment expands all tabs using an 8-character tab-width. You should ignore this commit when using git blame or use git blame -w. In the early days, I used to use tabs where possible for indentation, since emacs did this automatically. In recent years, I have switched to only using spaces, which means qpdf source code has been a mixture of spaces and tabs. I have avoided cleaning this up because of not wanting gratuitous whitespaces change to cloud the output of git blame, but I changed my mind after discussing with users who view qpdf source code in editors/IDEs that have other tab widths by default and in light of the fact that I am planning to start applying automatic code formatting soon.
Diffstat (limited to 'include/qpdf/Constants.h')
-rw-r--r--include/qpdf/Constants.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/include/qpdf/Constants.h b/include/qpdf/Constants.h
index 5c05f292..ab3ca1fe 100644
--- a/include/qpdf/Constants.h
+++ b/include/qpdf/Constants.h
@@ -32,11 +32,11 @@
enum qpdf_error_code_e
{
qpdf_e_success = 0,
- qpdf_e_internal, /* logic/programming error -- indicates bug */
- qpdf_e_system, /* I/O error, memory error, etc. */
- qpdf_e_unsupported, /* PDF feature not (yet) supported by qpdf */
- qpdf_e_password, /* incorrect password for encrypted file */
- qpdf_e_damaged_pdf, /* syntax errors or other damage in PDF */
+ qpdf_e_internal, /* logic/programming error -- indicates bug */
+ qpdf_e_system, /* I/O error, memory error, etc. */
+ qpdf_e_unsupported, /* PDF feature not (yet) supported by qpdf */
+ qpdf_e_password, /* incorrect password for encrypted file */
+ qpdf_e_damaged_pdf, /* syntax errors or other damage in PDF */
qpdf_e_pages, /* erroneous or unsupported pages structure */
qpdf_e_object, /* type/bounds errors accessing objects */
};
@@ -77,15 +77,15 @@ enum qpdf_object_type_e {
enum qpdf_object_stream_e
{
- qpdf_o_disable = 0, /* disable object streams */
- qpdf_o_preserve, /* preserve object streams */
- qpdf_o_generate /* generate object streams */
+ qpdf_o_disable = 0, /* disable object streams */
+ qpdf_o_preserve, /* preserve object streams */
+ qpdf_o_generate /* generate object streams */
};
enum qpdf_stream_data_e
{
- qpdf_s_uncompress = 0, /* uncompress stream data */
- qpdf_s_preserve, /* preserve stream data compression */
- qpdf_s_compress /* compress stream data */
+ qpdf_s_uncompress = 0, /* uncompress stream data */
+ qpdf_s_preserve, /* preserve stream data compression */
+ qpdf_s_compress /* compress stream data */
};
/* Stream data flags */
@@ -109,22 +109,22 @@ enum qpdf_stream_decode_level_e
enum qpdf_r3_print_e
{
- qpdf_r3p_full = 0, /* allow all printing */
- qpdf_r3p_low, /* allow only low-resolution printing */
- qpdf_r3p_none /* allow no printing */
+ qpdf_r3p_full = 0, /* allow all printing */
+ qpdf_r3p_low, /* allow only low-resolution printing */
+ qpdf_r3p_none /* allow no printing */
};
/* qpdf_r3_modify_e doesn't allow the full flexibility of the spec. It
* corresponds to options in Acrobat 5's menus. The new interface in
* QPDFWriter offers more granularity and no longer uses this type.
*/
-enum qpdf_r3_modify_e /* Allowed changes: */
+enum qpdf_r3_modify_e /* Allowed changes: */
{
- qpdf_r3m_all = 0, /* All editing */
+ qpdf_r3m_all = 0, /* All editing */
qpdf_r3m_annotate, /* Comments, fill forms, signing, assembly */
- qpdf_r3m_form, /* Fill forms, signing, assembly */
- qpdf_r3m_assembly, /* Only document assembly */
- qpdf_r3m_none /* No modifications */
+ qpdf_r3m_form, /* Fill forms, signing, assembly */
+ qpdf_r3m_assembly, /* Only document assembly */
+ qpdf_r3m_none /* No modifications */
};
/* Form field flags from the PDF spec */