Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yjg30737/typescript-child-process-python-pdfkit-example
Using child_process package in typescript to generate pdf with "pdfkit" package of Python
https://github.com/yjg30737/typescript-child-process-python-pdfkit-example
child-process pdfkit python typescript typescript-child-process typescript-pdf typescript-pdfkit typescript-python
Last synced: about 1 hour ago
JSON representation
Using child_process package in typescript to generate pdf with "pdfkit" package of Python
- Host: GitHub
- URL: https://github.com/yjg30737/typescript-child-process-python-pdfkit-example
- Owner: yjg30737
- License: mit
- Created: 2022-10-05T07:25:29.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-06T00:38:26.000Z (about 2 years ago)
- Last Synced: 2024-12-29T08:42:11.012Z (5 days ago)
- Topics: child-process, pdfkit, python, typescript, typescript-child-process, typescript-pdf, typescript-pdfkit, typescript-python
- Language: TypeScript
- Homepage:
- Size: 161 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# typescript-child-process-python-pdfkit-example
Using child_process package in typescript to generate pdf with pdfkit package of PythonGenerated pdf file will be saved in data/download folder.
Sample html file(pdf1.html) is in data/static folder.
This generated pure pdf file(text can be searched) out of that html file by default.
I tried:
* html2canvas - pdf-pretending image
* jsPDF - doesn't support a lot of language except for English and few other languages
* phantomjs-node - it worked, but it's not updated anymoreConclusion: Python rocks.
If you can come up with better solution than this, let me know!
I will really thank you about that.
## How to install
See the base project of this