Question
PDF Embed API issue
Hi All,
We started getting the following error recently:
DataCloneError: Failed to execute 'postMessage' on 'Window': #<Promise> could not be cloned.
when calling the getPDFMetadata() method.
Here’s the code:
previewFilePromise.then((adobeViewer) => {
adobeViewer.getAPIs().then((apis) => {
// All viewer APIs can be invoked here
apis.getPDFMetadata().then((result) => {
numPages = result.numPages;
pdfTitle = result.pdfTitle;
});
.catch((error) => console.log(error));
});
});The pdf displays correctly in the viewer however the getMetadata() method fails and we can’t get the number of pages, …
Is anyone having this issue?
