1/*
2 * Copyright 2010 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8
9#ifndef SkPDFFormXObject_DEFINED
10#define SkPDFFormXObject_DEFINED
11
12#include "src/pdf/SkPDFDevice.h"
13#include "src/pdf/SkPDFTypes.h"
14
15class SkPDFDocument;
16
17/** A form XObject is a self contained description of a graphics
18 object. A form XObject is a page object with slightly different
19 syntax, that can be drawn into a page content stream, just like a
20 bitmap XObject can be drawn into a page content stream.
21*/
22SkPDFIndirectReference SkPDFMakeFormXObject(SkPDFDocument* doc,
23 std::unique_ptr<SkStreamAsset> content,
24 std::unique_ptr<SkPDFArray> mediaBox,
25 std::unique_ptr<SkPDFDict> resourceDict,
26 const SkMatrix& inverseTransform,
27 const char* colorSpace);
28#endif
29