Fix unicode annotations

This commit is contained in:
Devon Govett 2014-08-29 11:49:20 -04:00
parent 932cd0c70c
commit 09ed15b2e4

View File

@ -22,7 +22,7 @@ module.exports =
note: (x, y, w, h, contents, options = {}) ->
options.Subtype = 'Text'
options.Contents = PDFObject.s contents
options.Contents = PDFObject.s contents, true
options.Name = 'Comment'
options.color ?= [243, 223, 92]
@annotate x, y, w, h, options
@ -73,7 +73,7 @@ module.exports =
textAnnotation: (x, y, w, h, text, options = {}) ->
options.Subtype = 'FreeText'
options.Contents = PDFObject.s text
options.Contents = PDFObject.s text, true
options.DA = PDFObject.s ''
@annotate x, y, w, h, options