[Pas2js] Question regarding third-party libraries
silvioprog
silvioprog at gmail.com
Tue Dec 18 15:44:39 CET 2018
Hi.
I have an external class which maps the jsPDF library:
https://parall.ax/products/jspdf
It is small, declares a clean API and is one of the best JS library to
generate PDF at client-side. A small example showing the usage in Pas2JS:
var
doc: TjsPDF;
begin
doc := TjsPDF.new;
doc.text('Hello world!', 10, 10);
doc.save('a4.pdf');
end;
it will generate the "a4.pdf" file, that can be rendered into a page or
offered as download as this: https://duallsistemas.com.br/download/a4.pdf
So, I have a question: do you have interesting to distribute it in Pas2JS?
The Lazarus installation contains the "components/" folder with a couple of
third-part components. What do you think about use the same idea?
If you agree, at least general use components in pure JS (jsPDF, Chart.js
and so on) should be added to this folder.
Best,
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20181218/644f0670/attachment.html>
More information about the Pas2js
mailing list