1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
// Copyright 2016 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.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#ifndef CORE_FPDFDOC_CPDF_METADATA_H_
#define CORE_FPDFDOC_CPDF_METADATA_H_
#include <memory>
#include <vector>
#include "core/fxcrt/unowned_ptr.h"
class CPDF_Stream;
enum class UnsupportedFeature : uint8_t {
kDocumentXFAForm = 1,
kDocumentPortableCollection = 2,
kDocumentAttachment = 3,
kDocumentSecurity = 4,
kDocumentSharedReview = 5,
kDocumentSharedFormAcrobat = 6,
kDocumentSharedFormFilesystem = 7,
kDocumentSharedFormEmail = 8,
kAnnotation3d = 11,
kAnnotationMovie = 12,
kAnnotationSound = 13,
kAnnotationScreenMedia = 14,
kAnnotationScreenRichMedia = 15,
kAnnotationAttachment = 16,
kAnnotationSignature = 17
};
class CPDF_Metadata {
public:
explicit CPDF_Metadata(const CPDF_Stream* pStream);
~CPDF_Metadata();
std::vector<UnsupportedFeature> CheckForSharedForm() const;
private:
UnownedPtr<const CPDF_Stream> stream_;
};
#endif // CORE_FPDFDOC_CPDF_METADATA_H_
|