40#ifdef SK_PDF_TEST_TAGS_OUTPUT_PATH
49 metadata.
fTitle =
"Example Tagged PDF With Links";
57 auto root = std::make_unique<PDFTag>();
59 root->fTypeString =
"Document";
60 root->fLang =
"en-US";
63 auto l1 = std::make_unique<PDFTag>();
65 l1->fTypeString =
"Link";
66 root->fChildVector.push_back(std::move(l1));
70 &outputStream, metadata);
76 document->beginPage(pageSize.
width(),
SK_API void SkAnnotateRectWithURL(SkCanvas *, const SkRect &, SkData *)
constexpr SkColor SK_ColorBLUE
#define DEF_TEST(name, reporter)
#define REQUIRE_PDF_DOCUMENT(TEST_NAME, REPORTER)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
static sk_sp< SkData > MakeWithCString(const char cstr[])
void GetDateTime(SkPDF::DateTime *)
SK_API sk_sp< SkDocument > MakeDocument(SkWStream *stream, const Metadata &metadata)
SK_API void SetNodeId(SkCanvas *dst, int nodeID)
font
Font Metadata and Metrics.
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
static constexpr SkSize Make(SkScalar w, SkScalar h)