Webviewer version : 8.7.0
brief summary of your issue:
How to modify document metadata
Hi, i’m working with React in TS, and i’m trying to show and modify the filename or get the author and others stuff like that.
And i’m trying to find a way to add custom properties like in Adobe Reader (Document Properties > Custom > Custom Properties)
I tried to use PDFDocInfo to set the title.
Const test = new PDFNet.PDFDocInfo();
test.setTitle('test');
const title = test.getTitle();
console.log(title);
and then i tried this =>
await title.then( (doctitle) => {
console.log(doctitle)
})
and i can’t find a way in a first case, to use thoses informations and manipulate them.
What i’m doing wrong ? and is there a way to have custom properties like in adobe reader ?