Which product are you using?
PDF.js Express Version
Detailed description of issue
We are not getting response of arc measurement,perimeter and area, and getting below error
Expected behaviour
Should get the XFDF response of above mentioned features.
Does your issue happen with every document, or just one?
{Every document}
Link to document
{Any pdf}
Code snippet
import WebViewer from “@pdftron/pdfjs-express”;
import { useEffect, useRef } from “react”;
const element = document.getElementById(“viewer”);
export default function App() {
const inst = useRef();
useEffect(() => {
WebViewer(
{
path: “WebViewer/lib”,
initialDoc:
“Agriculture plan Hamirpur.pdf - Google Drive”,
},
element
).then((instance) => {
inst.current = instance;
instance.Core.documentViewer.addEventListener(
“documentLoaded”,
async () => {}
);
});
});
const saveButton = document.getElementById(“save”);
saveButton.addEventListener(“click”, async () => {
const xfdf = await inst.Core.annotationManager.exportAnnotations();
console.log(xfdf);
});
return (
PDF VIEWER
<button " id=“save”>
Save
);
}