-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,10 +72,12 @@ As PDFKit internally relies on several different built in modules of Node.js, it | |
PDFKit provides a pre-built bundle that can be used directly in the browser. Similarly SwissQRBill also provides a pre-built bundle. It can be imported from the JSDelivr CDN as follows: | ||
|
||
```html | ||
<script | ||
type="text/javascript" | ||
src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/bundle/swissqrbill.js" | ||
></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pdfkit@0/js/pdfkit.standalone.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/+esm"></script> | ||
``` | ||
|
||
```html | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/bundle/swissqrbill.js"></script> | ||
``` | ||
|
||
The bundle exposes all exports in the global variable `SwissQRBill`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ If you previously used the pre built bundle, provided by SwissQRBill, you now ha | |
<!-- SwissQRBill >= v4 --> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/pdfkit@0/js/pdfkit.standalone.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/+esm"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/pdf/swissqrbill.js"></script> | ||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/swissqrbill@beta/lib/bundle/swissqrbill.js"></script> | ||
``` | ||
|
||
Again, please have a look at the [importing documentation](./importing.md) for more information and examples on how to import the library now. | ||
|