WebViewer Version: 8.5.0
Do you have an issue with a specific file(s)? no
Can you reproduce using one of our samples or online demos? not sure
Are you using the WebViewer server? no
Does the issue only happen on certain browsers? no
Is your issue related to a front-end framework? no
Is your issue related to annotations? no
Please give a brief summary of your issue:
getPathData does not exist on type Element (WebViewer)
Please describe your issue and provide steps to reproduce it:
I have run into an issue using WebViewer - it seems that getPathData is not part of the Element Class for the Web api, yet the api does have support for the PathSegmentType… is this a mistake? Why have the PathSegmentType but not have access to the pathData?
Please provide a link to a minimal sample where the issue is reproducible:
const page = await doc.getPage(0);
const reader = await PDFNet.ElementReader.create();
await reader.beginOnPage(page);
var element;
while (element = await reader.next()) { // Read page contents
switch (await element.getType()) {
case PDFNet.Element.Type.e_path:
const data = await element.getPathData();
// the above fails with error "Property 'getPathData' does not exist on type 'Element'."
break;
}
}
Please advise how to get the pathdata for web viewer
Thanks