1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Fix annotations; add text annotation icon

This commit is contained in:
Yury Delendik 2012-04-17 15:33:15 -05:00
parent 55a0d867dc
commit 237e1d941d
3 changed files with 57 additions and 7 deletions

View file

@ -283,7 +283,8 @@ var Page = (function PageClosure() {
var title = annotation.get('T');
item.content = stringToPDFString(content || '');
item.title = stringToPDFString(title || '');
item.name = annotation.get('Name').name;
item.name = !annotation.has('Name') ? 'Note' :
annotation.get('Name').name;
break;
default:
TODO('unimplemented annotation type: ' + subtype.name);