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:
parent
55a0d867dc
commit
237e1d941d
3 changed files with 57 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue