Which product are you using?
PDF.js Express Plus
PDF.js Express Version
7.0.1
Detailed description of issue
We open a PDF that contains annotations that are visible in Adobe PDF, but they are not displayed using PDF.js.
I’ve tried changing disableFlattenedAnnotations, but it doesn’t work.
Expected behaviour
This is what it should display:
Does your issue happen with every document, or just one?
This is the first time that we try to open a PDF with embedded annotations.
Link to document
{Provide a link to the document in question if possible}
Code snippet
WebViewer({
path: ‘/static/lib’,
initialDoc: FILE_NAME,
disableFlattenedAnnotations: false,
}, element).then(instance => {
const { docViewer, annotManager, Tools, Annotations, PDFNet, CoreControls } = instance;
// Document needs to be loaded before we can import annotations
instance.docViewer.on(‘documentLoaded’, async () => {
documentStream = await instance.docViewer.getDocument().getFileData({});
documentBlob = new Blob([documentStream], { type: 'application/pdf' });
})
})