Index: src/pdf/SkPDFPage.cpp |
diff --git a/src/pdf/SkPDFPage.cpp b/src/pdf/SkPDFPage.cpp |
index c39d20e65f4077a42440d8a6f9f958053495d9af..b792f5e365297ac52e1e7e936d5696e55183e0c4 100644 |
--- a/src/pdf/SkPDFPage.cpp |
+++ b/src/pdf/SkPDFPage.cpp |
@@ -27,12 +27,9 @@ void SkPDFPage::finalizePage(SkPDFCatalog* catalog, bool firstPage, |
if (fContentStream.get() == NULL) { |
this->insert("Resources", fDevice->getResourceDict()); |
SkSafeUnref(this->insert("MediaBox", fDevice->copyMediaBox())); |
- if (!SkToBool(catalog->getDocumentFlags() & |
- SkPDFDocument::kNoLinks_Flags)) { |
- SkPDFArray* annots = fDevice->getAnnotations(); |
- if (annots && annots->size() > 0) { |
- insert("Annots", annots); |
- } |
+ SkPDFArray* annots = fDevice->getAnnotations(); |
+ if (annots && annots->size() > 0) { |
+ insert("Annots", annots); |
} |
SkAutoTUnref<SkData> content(fDevice->copyContentToData()); |