PDFTron team,
First tried reading the pdf file from file syytem without giving server name, It worked perfectly. Now using local http server to read the same file, using serverUrl, but the file is not not getting loaded and doesn#t give any error. However the webviewer shows initializing...100% and nothing happens.
My sample code below:
var myWebViewer = new PDFTron.WebViewer({
//path: "WebViewer/lib",
path: "/WebViewer/lib",
type: "html5",
l: licenkey,
documentType: "pdf",
xdomainProxyUrl: "/proxy.html",
initialDoc : "/test.pdf",
showLocalFilePicker: true,
enableAnnotations:true,
config: "/nCconfig.js",
streaming: true,
showToolbarControl:true,
annotationUser: 'Guest',
annotationAdmin: true,
serverUrl: '
http://localhost:8080'
}, viewerElement);
Please help and suggest what is wrong or missing here.
Thanks!