gamalielmendez / node-fpdf

port de la libreria FPDF de PHP a Javascript
MIT License
18 stars 9 forks source link

Browser support? #17

Closed Dragomir-Ivanov closed 10 months ago

Dragomir-Ivanov commented 10 months ago

Greetings, Does this lovely package supports working in Browser? If not, what it would take to make it so?

Thank you!

gamalielmendez commented 10 months ago

Unfortunately, node-fpdf is not compatible with the browser, as it relies on specific Node.js API libraries, such as stream and fs, which are not available in the browser environment. To make it work in a browser environment, it would be necessary to seek alternatives to these libraries or rewrite certain parts of the code to adapt it to the browser context.