I’m having trouble merging document, accented text is getting wrong charset.
const xfdf = await this.annotManager.exportAnnotations({links: false, widgets: false});
const fileData = await this.docViewer.getDocument().getFileData({});
const blob = new Blob([fileData], {type: 'application/pdf'});
const data = new FormData();
data.append('xfdf', xfdf);
data.append('file', blob);
data.append('license', 'xxxxxxxxxx');
// Process the file
const response = await fetch('https://api.pdfjs.express/xfdf/merge', {
method: 'post',
body: data
}).then(resp => resp.json());