[Pkg-javascript-commits] [pdf.js] 47/115: Restore the `data.annotationFlags` parameter for annotations (PR 6672 follow-up)

David Prévot taffit at moszumanska.debian.org
Wed Dec 16 20:03:13 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit a2a5d36d5b1c0b4788488d57781a823141be2cf6
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Mon Nov 23 10:17:11 2015 +0100

    Restore the `data.annotationFlags` parameter for annotations (PR 6672 follow-up)
---
 src/core/annotation.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/annotation.js b/src/core/annotation.js
index 8735dd4..728b1eb 100644
--- a/src/core/annotation.js
+++ b/src/core/annotation.js
@@ -124,6 +124,7 @@ var Annotation = (function AnnotationClosure() {
     data.subtype = dict.get('Subtype').name;
 
     this.setFlags(dict.get('F'));
+    data.annotationFlags = this.flags;
 
     this.setRectangle(dict.get('Rect'));
     data.rect = this.rectangle;
@@ -678,7 +679,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() {
         if (!isValidUrl(url, false)) {
           url = '';
         }
-        // According to ISO 32000-1:2008, section 12.6.4.7, 
+        // According to ISO 32000-1:2008, section 12.6.4.7,
         // URI should to be encoded in 7-bit ASCII.
         // Some bad PDFs may have URIs in UTF-8 encoding, see Bugzilla 1122280.
         try {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list