17 std::unique_ptr<SkStreamAsset>
content,
18 std::unique_ptr<SkPDFArray> mediaBox,
19 std::unique_ptr<SkPDFDict> resourceDict,
21 const char* colorSpace) {
23 dict->insertName(
"Type",
"XObject");
24 dict->insertName(
"Subtype",
"Form");
28 dict->insertObject(
"Resources", std::move(resourceDict));
29 dict->insertObject(
"BBox", std::move(mediaBox));
36 group->insertName(
"S",
"Transparency");
37 if (colorSpace !=
nullptr) {
38 group->insertName(
"CS", colorSpace);
40 group->insertBool(
"I",
true);
41 dict->insertObject(
"Group", std::move(
group));
SkPDFIndirectReference SkPDFStreamOut(std::unique_ptr< SkPDFDict > dict, std::unique_ptr< SkStreamAsset > content, SkPDFDocument *doc, SkPDFSteamCompressionEnabled compress)
static std::unique_ptr< SkPDFDict > SkPDFMakeDict(const char *type=nullptr)
union flutter::testing::@2836::KeyboardChange::@76 content
std::unique_ptr< SkPDFArray > MatrixToArray(const SkMatrix &matrix)