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

Merge pull request #1568 from yurydelendik/issue-1557

Fixes annotations; adds text annotation icon
This commit is contained in:
Brendan Dahl 2012-04-18 10:51:13 -07:00
commit cec7a92a99
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);