5. If you want to manually set the PdfJs library version for the web, a small script
5. If you want to manually set the Pdf.js library version for the web, a small script
has to be added to your `web/index.html` file, just before `</head>`.
Otherwise it is loaded automatically:
...
...
@@ -52,6 +52,20 @@ for documentation.
vardartPdfJsVersion="3.2.146";
</script>
```
5.1. If you want to manually set the alternative location for loading Pdf.js library for the web, the following script has to be added to your `web/index.html` file, just before `</head>`.
```html
<script>
var dartPdfJsBaseUrl = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.2.146/";
</script>
```
It is possible to use local directory which will be resolved to the host where the web app is running.
```html
<script>
var dartPdfJsBaseUrl = "assets/js/pdf/3.2.146/";
</script>
```
6. For Windows and Linux, you can force the pdfium version and architecture