Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
8.7
Detailed description of issue
When a pdf loads and under some circumstances (screen size, resolution, zoom level), the letters display broken. For example in my laptop 1920x1080 with zoom level 85%.
Expected behaviour
The same pdf works normal from my PC
Does your issue happen with every document, or just one?
With every document but only on specific PC/laptop (screen size, resolution, zoom level)
Link to document
{Provide a link to the document in question if possible}
Code snippet
div id=“viewer” style=“width:100%;height:95vh;margin:0 auto”
WebViewer({
path: "${contextPath}/lib",
licenseKey: '....',
initialDoc: "....",
disabledElements: [
'viewControlsButton',
'selectToolButton',
'fitButton',
'freeHandToolGroupButton',
'textToolGroupButton',
'shapeToolGroupButton',
'eraserToolButton',
'signatureToolGroupButton',
'freeTextToolButton',
'stickyToolButton',
'miscToolGroupButton',
'toolsButton',
'searchButton',
'menuButton',
'searchPanel',
'viewControlsOverlay',
'menuOverlay',
'pageNavOverlay',
'toolsOverlay',
'searchOverlay',
'annotationPopup',
'annotationStylePopup',
'toolStylePopup',
'stylePopup',
'textPopup',
'annotationNoteConnectorLine',
'signatureModal',
'printModal',
'loadingModal',
'errorModal',
'passwordModal',
'stickyToolButton',
'highlightToolButton',
'freeHandToolButton',
'freeTextToolButton',
'leftPanel',
'leftPanelButton',
],
}, document.getElementById('viewer'))
.then(instance => {
const docViewer = instance.Core.documentViewer;
docViewer.addEventListener('documentLoaded', () => {
console.log('document loaded');
instance.UI.disableFeatures([instance.UI.Feature.TextSelection, instance.UI.Feature.Copy, instance.UI.Feature.Print]);
instance.disableFeatures([instance.Feature.TextSelection, instance.Feature.Copy, instance.Feature.Print]);
});
});