-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init pdf export demo * Update pdf-export/README.md Co-authored-by: Jeremie <[email protected]> * fix * doc * doc * fix missing logo --------- Co-authored-by: Jeremie <[email protected]>
- Loading branch information
1 parent
d0e6cdb
commit 48e50a3
Showing
11 changed files
with
7,005 additions
and
0 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 |
---|---|---|
|
@@ -59,3 +59,5 @@ typings/ | |
|
||
# next.js build output | ||
.next | ||
|
||
dist |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# PDF Export x Doctrine | ||
|
||
## Demo | ||
|
||
start the server | ||
|
||
```sh | ||
npm run serve | ||
`````` | ||
|
||
You can find the 4 versions of the PDF export we had at Doctrine | ||
|
||
### html2pdf | ||
[code here](static/html2pdf.html) | ||
|
||
Visit [http://localhost:8080/html2pdf.html](http://localhost:8080/html2pdf.html) | ||
|
||
### phantomjs | ||
|
||
run this command and check out the generated pdf in the dist folder | ||
|
||
```sh | ||
node phantomjs.mjs | ||
``` | ||
[code here](phantomjs.mjs) | ||
|
||
### wkhtmltopdf | ||
|
||
run this command and check out the generated pdf in the dist folder | ||
|
||
```sh | ||
node wkhtmltopdf.mjs | ||
``` | ||
|
||
[code here](wkhtmltopdf.mjs) | ||
### puppeteer | ||
The last and still used in production solution | ||
|
||
run this command and check out the generated pdf in the dist folder | ||
|
||
```sh | ||
node puppeteer.mjs | ||
``` | ||
|
||
[code here](puppeteer.mjs) |
Oops, something went wrong.