Fixed examples/acroforms/forms.js
This commit is contained in:
parent
287e7c808b
commit
4eb7c04034
@ -58,7 +58,7 @@ function setupForm(div, content, viewport) {
|
|||||||
content.getAnnotations().then(function(items) {
|
content.getAnnotations().then(function(items) {
|
||||||
for (var i = 0; i < items.length; i++) {
|
for (var i = 0; i < items.length; i++) {
|
||||||
var item = items[i];
|
var item = items[i];
|
||||||
switch (item.type) {
|
switch (item.subtype) {
|
||||||
case 'Widget':
|
case 'Widget':
|
||||||
if (item.fieldType != 'Tx' && item.fieldType != 'Btn' &&
|
if (item.fieldType != 'Tx' && item.fieldType != 'Btn' &&
|
||||||
item.fieldType != 'Ch')
|
item.fieldType != 'Ch')
|
||||||
@ -125,7 +125,7 @@ function renderPage(div, pdf, pageNumber, callback) {
|
|||||||
canvasContext: context,
|
canvasContext: context,
|
||||||
viewport: viewport
|
viewport: viewport
|
||||||
};
|
};
|
||||||
page.render(renderContext).then(callback);
|
page.render(renderContext).promise.then(callback);
|
||||||
|
|
||||||
// Prepare and populate form elements layer
|
// Prepare and populate form elements layer
|
||||||
var formDiv = document.createElement('div');
|
var formDiv = document.createElement('div');
|
||||||
|
Loading…
Reference in New Issue
Block a user