summaryrefslogtreecommitdiffstats
path: root/gfx/skia/skia/src/pdf/SkPDFMetadata.h
blob: 3091be4d7712000dad63117f6aa0df111ec28592 (plain)
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
/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SkPDFMetadata_DEFINED
#define SkPDFMetadata_DEFINED

#include "SkDocument.h"

class SkPDFObject;

namespace SkPDFMetadata {
sk_sp<SkPDFObject> MakeDocumentInformationDict(const SkDocument::PDFMetadata&);

struct UUID {
    uint8_t fData[16];
};

UUID CreateUUID(const SkDocument::PDFMetadata&);

sk_sp<SkPDFObject> MakePdfId(const UUID& doc, const UUID& instance);

sk_sp<SkPDFObject> MakeXMPObject(const SkDocument::PDFMetadata&,
                                 const UUID& doc,
                                 const UUID& instance);
}
#endif  // SkPDFMetadata_DEFINED