Skip to content

Commit

Permalink
Update README.,md
Browse files Browse the repository at this point in the history
  • Loading branch information
MacDeveloper1 committed Feb 21, 2024
1 parent 00a035b commit c9b8b17
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion printing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ for documentation.
<true/>
```

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:

Expand All @@ -52,6 +52,20 @@ for documentation.
var dartPdfJsVersion = "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
on your main `CMakeLists.txt` with:
Expand Down

0 comments on commit c9b8b17

Please sign in to comment.