diff options
author | halcanary <halcanary@google.com> | 2016-04-08 10:51:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-08 10:51:05 -0700 |
commit | 89c2a0b8c12879f94f746a5d9fe723a48434647f (patch) | |
tree | f14de91815a1198e8c5feaabd3d9a7fbc4aa5dfb /src/pdf/SkPDFDevice.cpp | |
parent | 050ab5d858980a7e5ebb4911bac649cb5d5f0c21 (diff) |
SkPDF: Fix links to be more valid PDF/A
See:
https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-1
https://github.com/veraPDF/veraPDF-validation-profiles/wiki/PDFA-Parts-2-and-3-rules#rule-632-2
BUG=skia:3010
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1867003004
Review URL: https://codereview.chromium.org/1867003004
Diffstat (limited to 'src/pdf/SkPDFDevice.cpp')
-rw-r--r-- | src/pdf/SkPDFDevice.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pdf/SkPDFDevice.cpp b/src/pdf/SkPDFDevice.cpp index 38e6d1f021..5c933ee7d5 100644 --- a/src/pdf/SkPDFDevice.cpp +++ b/src/pdf/SkPDFDevice.cpp @@ -827,6 +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"); + #ifdef SK_PDF_GENERATE_PDFA + annotation->insertInt("F", 4); // required by ISO 19005 + #endif auto border = sk_make_sp<SkPDFArray>(); border->reserve(3); |