I'm' glad to announce the new release of TCLFPDF.
It's a port fully updated of PHP to TCL of FPDF, a library wroted in PHP to generate PDF files.
Originally released in 2014, now is based in tFPDF 1.32 (http://www.fpdf.org/en/script/script92.php), a modified class of FPDF 1.82 (http://www.fpdf.org) that adds support for UTF-8.
One of main goals is make possible to port the examples or addons of FPDF with minimal effort.
I hope it will be useful for the tcl community.
Thanks a lot. And where can we find TCLFPDF?
I'm' glad to announce the new release of TCLFPDF.
It's a port fully updated of PHP to TCL of FPDF, a library wroted in PHP to generate PDF files.
Originally released in 2014, now is based in tFPDF 1.32 (http://www.fpdf.org/en/script/script92.php), a modified class of FPDF 1.82 (http://www.fpdf.org) that adds support for UTF-8.
One of main goals is make possible to port the examples or addons of FPDF with minimal effort.
I hope it will be useful for the tcl community.
Ashok: Thanks, it seems i'm not so good for marketing :-)
Alejandro
to make it work on Linux, the retrieval of the Windows specific environment variable
SystemRoot must be guarded. See https://github.com/lamuzzachiodi/tclfpdf/issues/1
variable TCLFPDF_FONTPATH "[file join [pwd] [file dirname [info script]]]/font"
On Saturday, October 8, 2022 at 9:27:26 PM UTC+2, Paul Obermeier wrote:
to make it work on Linux, the retrieval of the Windows specific
environment variable SystemRoot must be guarded. See
https://github.com/lamuzzachiodi/tclfpdf/issues/1
While looking at that code, I stumbled upon
variable TCLFPDF_FONTPATH "[file join [pwd] [file dirname [info script]]]/font"
and a few other occurrences of file join + pwd + info script. I wondered
* Is info script not guaranteed to return an absolute path (while it
was not overwritten with info script newpath)?
* Is one of these patterns preferable: [file join [pwd] $path1 $path2
...] vs [file normalize [file join $path1 $path2 ...]]?
# untested
variable TCLFPDF_BASEPATH [file normalize [file dirname [info script]]] variable TCLFPDF_FONTPATH [file join $TCLFPDF_BASEPATH font]
In the end, this will most likely be a matter of taste with no real performance or maintainability impact - but it has caught my eyes.
From: Ashok <apnmbx-public@yahoo.com>
Date: Sun Oct 09 09:36:20 GMT 2022
Subject: New release of TCLFPDF
This looks a similar to the pdf4tcl package. Both appear to allow Tcl to generate .pdf files.
Dave B
I'm' glad to announce the new release of TCLFPDF.
It's a port fully updated of PHP to TCL of FPDF, a library wroted in PHP to generate PDF files.
Originally released in 2014, now is based in tFPDF 1.32 (http://www.fpdf.org/en/script/script92.php), a modified class of FPDF 1.82 (http://www.fpdf.org) that adds support for UTF-8.
One of main goals is make possible to port the examples or addons of FPDF with minimal effort.
I hope it will be useful for the tcl community.
Is this a binary package?No, it's pure TCL with no dependencies.
Is this a binary package?No, it's pure TCL with no dependencies.
(I know is not the same but i used it in tclkits exes)
This looks a similar to the pdf4tcl package. Both appear to allow Tcl to generate .pdf files.That's rigth. In fact, the parse of jpg files is based in pdf4tcl 0.8 (in the original PHP was used an internal function, not portable).
Dave B
Originally (many years ago), i've need to port code from PHP to TCL, this way i've started this project.
What would be the advantage/difference with respect to pdf4tcl?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 485 |
Nodes: | 16 (2 / 14) |
Uptime: | 131:22:09 |
Calls: | 9,655 |
Calls today: | 3 |
Files: | 13,707 |
Messages: | 6,166,553 |