diff --git a/examples/acroforms/index.html b/examples/acroforms/index.html
index 5ac3fdc7f..85b60f369 100644
--- a/examples/acroforms/index.html
+++ b/examples/acroforms/index.html
@@ -5,13 +5,13 @@
-
+
-
+
-
+
@@ -37,6 +37,7 @@
+
diff --git a/test/test_slave.html b/test/test_slave.html
index 1e03be43c..1fa834500 100644
--- a/test/test_slave.html
+++ b/test/test_slave.html
@@ -20,13 +20,13 @@ limitations under the License.
pdf.js test slave
-
+
-
+
@@ -36,6 +36,7 @@
+
diff --git a/web/page_view.js b/web/page_view.js
index 636e4777e..066e2dccd 100644
--- a/web/page_view.js
+++ b/web/page_view.js
@@ -17,7 +17,7 @@
/* globals RenderingStates, PDFView, PDFHistory, PDFFindBar, PDFJS, mozL10n,
CustomStyle, PresentationMode, scrollIntoView, SCROLLBAR_PADDING,
CSS_UNITS, UNKNOWN_SCALE, DEFAULT_SCALE, getOutputScale,
- TextLayerBuilder, cache, Stats */
+ TextLayerBuilder, cache, Stats, AnnotationUtils */
'use strict';
@@ -322,16 +322,14 @@ var PageView = function pageView(container, id, scale,
} else {
for (i = 0, ii = annotationsData.length; i < ii; i++) {
data = annotationsData[i];
- var annotation = PDFJS.Annotation.fromData(data);
- if (!annotation || !annotation.hasHtml()) {
+ if (!data || !data.hasHtml) {
continue;
}
- element = annotation.getHtmlElement(pdfPage.commonObjs);
+ element = AnnotationUtils.getHtmlElement(data, pdfPage.commonObjs);
element.setAttribute('data-annotation-id', data.id);
mozL10n.translate(element);
- data = annotation.getData();
var rect = data.rect;
var view = pdfPage.view;
rect = PDFJS.Util.normalizeRect([
diff --git a/web/viewer.html b/web/viewer.html
index ee75ec2aa..f8145740d 100644
--- a/web/viewer.html
+++ b/web/viewer.html
@@ -48,13 +48,13 @@ http://sourceforge.net/adobe/cmap/wiki/License/
-
+