|
@@ -1368,8 +1368,8 @@ function getAnnotation({
|
|
|
Module._GetAnnotCreationDate(annotPtr)
|
|
|
const rawCreateDate = U8StringData
|
|
|
const createDate = parseAdobePDFTimestamp(rawCreateDate)
|
|
|
- const rawContent = Module._GetAnnotContent(annotPtr)
|
|
|
- const content = UTF8ToString(rawContent)
|
|
|
+ Module._GetAnnotContent(annotPtr)
|
|
|
+ const content = U8StringData
|
|
|
Module._GetAnnotTitle(annotPtr)
|
|
|
const title = U8StringData
|
|
|
console.log(title)
|
|
@@ -1577,8 +1577,8 @@ function getWidgetAnnotation({
|
|
|
Module._GetAnnotCreationDate(annotPtr)
|
|
|
const rawCreateDate = U8StringData
|
|
|
const createDate = parseAdobePDFTimestamp(rawCreateDate)
|
|
|
- const rawContent = Module._GetAnnotContent(annotPtr)
|
|
|
- const content = UTF8ToString(rawContent)
|
|
|
+ Module._GetAnnotContent(annotPtr)
|
|
|
+ const content = U8StringData
|
|
|
|
|
|
const type = Module._GetWidgetType(annotPtr)
|
|
|
|
|
@@ -1881,8 +1881,8 @@ function setAnnotContent(data) {
|
|
|
const content = stringToNewUTF8(rawContent)
|
|
|
const result = Module._SetAnnotContent(annotPtr, content)
|
|
|
|
|
|
- const contentString = Module._GetAnnotContent(annotPtr)
|
|
|
- const res = UTF8ToString(contentString)
|
|
|
+ Module._GetAnnotContent(annotPtr)
|
|
|
+ const res = U8StringData
|
|
|
console.log(res)
|
|
|
|
|
|
return result
|