aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFDevice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r--src/pdf/SkPDFDevice.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp
index fb4d2510b7..5c933ee7d5 100644
--- a/src/pdf/SkPDFDevice.cpp
+++ b/src/pdf/SkPDFDevice.cpp
@@ -827,7 +827,9 @@ void SkPDFDevice::drawPoints(const SkDraw& d,
static sk_sp<SkPDFDict> create_link_annotation(const SkRect& translatedRect) {
auto annotation = sk_make_sp<SkPDFDict>("Annot");
annotation->insertName("Subtype", "Link");
- annotation->insertInt("F", 4); // required by ISO 19005
+ #ifdef SK_PDF_GENERATE_PDFA
+ annotation->insertInt("F", 4); // required by ISO 19005
+ #endif
auto border = sk_make_sp<SkPDFArray>();
border->reserve(3);