How do I set up the core for Advanced customization?

Hi there,

There is some additional configuration that needs to be done to make the UI work with the PDF.js Express Core. We are going to spend some time figuring out how to make this easier for everyone, and then get back to you with an easier solution!

For now, you have to replace the index.html file in the UI to this:

<!doctype html>
<html moznomarginboxes mozdisallowselectionprint>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <link rel="icon" href="assets/pdftron.ico">
    <link rel="stylesheet" href="./style.css">
    <title>WebViewer UI</title>
  </head>
  <body>
    <div id="app"></div>
    <div id="portal"></div>
    <script src="../core/CoreControls.js"></script>
    <script src="../core/pdfjs/PDFJSDocumentType.js"></script>
    <script src="../core/pdfjs/UIConfig.js"></script>
    <script src="webviewer-ui.min.js"></script>
  </body>
</html>

If this doesn’t work please let me know.

Thank you!
Logan

1 Like