Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 Python

Generated 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 anymore

Conclusion: 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