Load file in webviewer from remote server path

Hi,
In web viewer sample solution, when choosing the file from browse button , the viewer will loads the file. I am here trying to load file default from my remote or local server without choosing file.

when running the application, below notification will coming.
image.

Its is completely free or Paid(with API )

I want to load file default for my application. Please help me regarding.
Thanks in advance.

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi,

May I know how you’re currently loading the file?

Thanks.

Wanbo

Hi,
Currently loading by below lines.

WebViewer(
{
path: ‘…/…/…/lib’,
webviewerServerURL: ‘https://demo.pdftron.com/’,
initialDoc: ‘http://172.16.3.105/vconnect/FS_VG_V4_1_VConnect/CleanRoomDiagram/Fr-IMGID-2021-5607.01.pdf’,
},
document.getElementById(‘viewer’)
).then(instance => {
samplesSetup(instance);

document.getElementById(‘urlform’).onsubmit = e => {
e.preventDefault();
instance.UI.loadDocument(document.getElementById(‘url’).value);
};

document.getElementById(‘myBtn’).onclick = e => {
callmethod1(instance);
};

});

The file is stored in another server/ local

Kindly help me and please provide any specific links or code

I think first you need to make sure the doc link is accessible. I just tried opening it in my browser and there was no response.

Wanbo