2 * Copyright 2010 The Android Open Source Project
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
9 #ifndef SkPDFFormXObject_DEFINED
10 #define SkPDFFormXObject_DEFINED
12 #include "src/pdf/SkPDFDevice.h"
13 #include "src/pdf/SkPDFTypes.h"
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.
22 SkPDFIndirectReference 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);