In this case use --external_parts option in DocPub (https://www.pdftron.com/docpub/downloads.html) or SetExternalParts (bool generate) in XODOutputOptions (if you are using PDFNet).
More info about this option:
--external_parts For conversions to .xod only. Output XOD
as a collection of loose files rather than
a zip archive. This option should be used
when using the external part retriever in
Webviewer.
Once you've converted the PDF to an unzipped XOD file then you'll have to make one small modification to WebViewer.js to be able to load it.
In WebViewer.js find the _getHTML5OptionsURL function and after the if statement if (typeof options.initialDoc...) add this code:
if (options.externalPath) {
var path = this._correctRelativePath(options.externalPath);
path = encodeURIComponent(path);
url += "&p=" + path;
}
Then when you create your WebViewer instance you would do it like this:
var myWebViewer = new PDFTron.WebViewer({
initialDoc: "external",
externalPath: "/path/to/your/xod_folder",
...
...
}, viewerElement);
pdftron.PDF.Convert.ToXod(pdfDoc, "my_output_folder", options);