|
|
@ -124,6 +124,7 @@ var Annotation = (function AnnotationClosure() { |
|
|
|
data.subtype = dict.get('Subtype').name; |
|
|
|
data.subtype = dict.get('Subtype').name; |
|
|
|
|
|
|
|
|
|
|
|
this.setFlags(dict.get('F')); |
|
|
|
this.setFlags(dict.get('F')); |
|
|
|
|
|
|
|
data.annotationFlags = this.flags; |
|
|
|
|
|
|
|
|
|
|
|
this.setRectangle(dict.get('Rect')); |
|
|
|
this.setRectangle(dict.get('Rect')); |
|
|
|
data.rect = this.rectangle; |
|
|
|
data.rect = this.rectangle; |
|
|
@ -678,7 +679,7 @@ var LinkAnnotation = (function LinkAnnotationClosure() { |
|
|
|
if (!isValidUrl(url, false)) { |
|
|
|
if (!isValidUrl(url, false)) { |
|
|
|
url = ''; |
|
|
|
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.
|
|
|
|
// URI should to be encoded in 7-bit ASCII.
|
|
|
|
// Some bad PDFs may have URIs in UTF-8 encoding, see Bugzilla 1122280.
|
|
|
|
// Some bad PDFs may have URIs in UTF-8 encoding, see Bugzilla 1122280.
|
|
|
|
try { |
|
|
|
try { |
|
|
|