# WebViewer PDF Lib URL problem

**URL:** <https://pdfjs.community/t/webviewer-pdf-lib-url-problem/2339>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [February 2, 2023, 5:46pm UTC](https://pdfjs.community/t/webviewer-pdf-lib-url-problem/2339 "2023-02-02T17:46:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiran305](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@shiran305](https://pdfjs.community/u/shiran305)\
**Post date:** [February 2, 2023, 5:46pm UTC](https://pdfjs.community/t/webviewer-pdf-lib-url-problem/2339/1 "2023-02-02T17:46:48Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
8.7.1

**Detailed description of issue**  
When trying to load a test pdf from azure storage blob, the server url is there.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/d/d963d6566f752d0560c828bb991af5fafe7a4749.png)

**Expected behaviour**  
It was working fine in an older version.

**Does your issue happen with every document, or just one?**  
This is happening with the web viewer for all pdfs

**Code snippet**  
WebViewer({  
path: ‘…/lib’,  
initialDoc:‘[https://submittalappstg.azurewebsites.net/api/Home/download?bloburl=Update\_d810adcf-fb46-41f0-9f0f-e2246cc86399.pdf](https://submittalappstg.azurewebsites.net/api/Home/download?bloburl=Update_d810adcf-fb46-41f0-9f0f-e2246cc86399.pdf)’,  
licenseKey: ‘irld89CMAcwPvMz4SJzz’,  
}, this.viewer1.nativeElement).then(instance =\> {  
debugger;  
this.wvInstance = instance;  
this.wvInstance.annotManager.setCurrentUser(this.user)  
var files = this.dialogConfig && this.dialogConfig[‘pdfFiles’];  
if (files && files.files && files.files.reorderIndexes) {  
try {  
let reorder = JSON.parse(files.files.reorderIndexes)  
if (Array.isArray(reorder)) {  
this.reorderData = files.reorderData = reorder  
}  
}  
catch { }  
}  
this.createHeader(this.dialogConfig.config.previewUrl, files);  
instance.setFitMode(‘FitWidth’)  
instance.openElements([‘notesPanel’]);  
instance.disableFeatures([instance.Feature.Print, instance.Feature.FilePicker]);  
instance.disableElements([  
‘menuButton’, /\* for menu _/  
‘searchButton’, /_ for search _/  
‘toolsButton’, /_ full screen _/  
‘miscToolGroupButton’, /_ stamp, attachment, callout _/  
‘stickyToolButton’, /_ comment box _/  
‘signatureToolButton’, /_ signature _/  
//‘zoomOverlayButton’, ‘zoomInButton’, ‘zoomOutButton’,  
‘panToolButton’,/_ hand _/  
‘viewControlsButton’, /_ settings, page transition, layout, rotate _/  
‘selectToolButton’ /_ big arrow \*/,  
‘ellipseToolButton’,  
‘arrowToolButton’,  
‘polylineToolButton’,  
‘polygonToolButton’,  
‘cloudToolButton’,  
‘freeHandToolButton2’,  
‘freeHandToolButton3’,  
‘freeHandToolButton4’,  
‘highlightToolButton2’,  
‘highlightToolButton3’,  
‘highlightToolButton4’,  
‘underlineToolButton’,  
‘squigglyToolButton’,  
‘strikeoutToolButton’,  
‘outlinesPanelButton’,  
‘documentControl’  
]);

---

<div class="post-metadata">

**Author:** ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)\
**Post date:** [February 2, 2023, 10:31pm UTC](https://pdfjs.community/t/webviewer-pdf-lib-url-problem/2339/2 "2023-02-02T22:31:47Z")

</div>

Hi there,

Thanks for reaching out to pdf.js express forums,

Could you please clarify your issue?

I just tested it with the above WebViewer constructor and was able to retrieve the PDF:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/2X/2/2b77dd4b45cfc164ebbddad1f9a1216406d4f908.jpeg)

Best regards,  
Kevin Kim
