# How do I set up the core for Advanced customization?

**URL:** <https://pdfjs.community/t/how-do-i-set-up-the-core-for-advanced-customization/226>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [August 24, 2020, 9:03am UTC](https://pdfjs.community/t/how-do-i-set-up-the-core-for-advanced-customization/226 "2020-08-24T09:03:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eul.noh](https://avatars.discourse-cdn.com/v4/letter/e/7bcc69/32.png) [@eul.noh](https://pdfjs.community/u/eul.noh)\
**Post date:** [August 24, 2020, 9:03am UTC](https://pdfjs.community/t/how-do-i-set-up-the-core-for-advanced-customization/226/1 "2020-08-24T09:03:18Z")

</div>

**Detailed description of issue**  
I want to do some advanced customization using git source ([https://github.com/PDFTron/webviewer-ui](https://github.com/PDFTron/webviewer-ui)).  
How do I set up the core?

Is it right to use Core of [https://www.npmjs.com/package/@pdftron/pdfjs-express](https://www.npmjs.com/package/@pdftron/pdfjs-express)?

This setting will cause an error.

CoreControls.js:515 GET [http://localhost:3000/core/pdf/simple\_wasm/MemGrow.js](http://localhost:3000/core/pdf/simple_wasm/MemGrow.js) net::ERR\_ABORTED 404 (Not found)

The version is v7.0.0.

The same result is obtained even if core is set in another way.

$npx @pdftron/webviewer-downloader --core-only --path ./lib  
It is the same result even if I receive it as follows and build it in the latest master branch after setting the core and test it.

:3000/core/pdf/simple\_wasm/MemGrow.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [August 24, 2020, 3:01pm UTC](https://pdfjs.community/t/how-do-i-set-up-the-core-for-advanced-customization/226/2 "2020-08-24T15:01:03Z")

</div>

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:

```javascript
<!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
