From 2617056df6d6e1d0f17031f0c9db09f9192cb0fa Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 17 Apr 2018 17:01:52 +0000 Subject: Add constants for PDF 1.7 spec, table 3.4. Add constants/stream_dict_common.h. The header lists all the constants in the table in the same order. Constants that are not used at all are commented out. BUG=pdfium:1049 Change-Id: I6539090e0ad56319ea628883e388aeacef044e52 Reviewed-on: https://pdfium-review.googlesource.com/29090 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- constants/stream_dict_common.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 constants/stream_dict_common.h (limited to 'constants') diff --git a/constants/stream_dict_common.h b/constants/stream_dict_common.h new file mode 100644 index 0000000000..fc12622b61 --- /dev/null +++ b/constants/stream_dict_common.h @@ -0,0 +1,27 @@ +// Copyright 2018 PDFium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CONSTANTS_STREAM_DICT_COMMON_H_ +#define CONSTANTS_STREAM_DICT_COMMON_H_ + +namespace pdfium { +namespace stream { + +// PDF 1.7 spec, table 3.4. +// Entries common to all stream dictionaries. + +// TODO(https://crbug.com/pdfium/1049): Examine all usages of "Length", +// "Filter", and "F". +constexpr char kLength[] = "Length"; +constexpr char kFilter[] = "Filter"; +constexpr char kDecodeParms[] = "DecodeParms"; +constexpr char kF[] = "F"; +// constexpr char kFFilter[] = "FFilter"; +// constexpr char kFDecodeParms[] = "FDecodeParms"; +constexpr char kDL[] = "DL"; + +} // namespace stream +} // namespace pdfium + +#endif // CONSTANTS_STREAM_DICT_COMMON_H_ -- cgit v1.2.3