mirror of
https://pdfium.googlesource.com/pdfium
synced 2026-08-02 05:04:39 +08:00
Create constants/catalog.h with some of the entries from the spec. Use the constants where applicable. Bug: 42270045 Change-Id: Id1edafe9c8defd7ca574dc8787524794379bb9c6 Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/149230 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
24 lines
756 B
C++
24 lines
756 B
C++
// Copyright 2026 The PDFium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef CONSTANTS_CATALOG_H_
|
|
#define CONSTANTS_CATALOG_H_
|
|
|
|
namespace pdfium::catalog {
|
|
|
|
// ISO 32000-1:2008 spec, table 28.
|
|
// Entries in the catalog dictionary.
|
|
inline constexpr char kVersion[] = "Version";
|
|
inline constexpr char kPages[] = "Pages";
|
|
inline constexpr char kPageLabels[] = "PageLabels";
|
|
inline constexpr char kNames[] = "Names";
|
|
inline constexpr char kDests[] = "Dests";
|
|
inline constexpr char kViewerPreferences[] = "ViewerPreferences";
|
|
inline constexpr char kOutlines[] = "Outlines";
|
|
inline constexpr char kAcroForm[] = "AcroForm";
|
|
|
|
} // namespace pdfium::catalog
|
|
|
|
#endif // CONSTANTS_CATALOG_H_
|