Construction plan does not sharpen up when zooming in

PDF.js Express Version

Detailed description of issue
{Hi!
I am building a PoC using ReactJS. The app should be able to render the plan in full detail when zooming in, but it does not. When zooming to a certain level the WebViewer stops rendering the PDF in better quality and detail. :open_mouth:

How to fix it and get better performance?
}

Expected behaviour
{The functionality works better (although sometimes laggy, but at least it renders properly) in the demo link: https://pdfjs.express/samples/viewing/viewing/.
(Cant add a second image of it due to rules)
}

Link to document
{Provide a link to the document in question if possible}

Code snippet
{
useEffect(() => {
WebViewer({
path: ‘/webviewer/lib’,
initialDoc: defaultFilePath.path,
},
viewer.current,
).then((instance) => {
var Feature = instance.Feature;
instance.enableFeatures([Feature.FilePicker]);
setInstance(instance)
});
}, [] );
}

Here can be seen the render quality of the same plan when rendered on https://pdfjs.express/samples/viewing/viewing/

Hi there!

This was fixed in version 7.1.2, so upgrading should fix your issue.

Thanks,
Logan

1 Like