This topic is locked

PDF Generator for PHPRunner

7/3/2016 12:30:22 PM
PHPRunner General questions
K
KelvinChua author

Hi Gurus,
Is there anyway to use the TCpdf generator for PHPRunner?
Thanks.
Kelvin Chua

SINGAPORE

K
klyle 7/10/2016

Hey Kelvin,
What have you tried? https://tcpdf.org/examples/example_001/ looks pretty simple...just stuff some HTML into their sample code.
If the Enterprise Web Reports feature delivers the report output as a variable you can feed in there, it should work, maybe after some pre-processing.

K
KelvinChua author 7/10/2016

Hi Ken,
Usually I will use DebenuPDFClass for other programming languages.
The problem of PDF Generators is that some generators are pretty slow when generating the reports. It may also utilizes hell a lot of memory when generating the reports; if the file size generated PDF is big.
The TCPDF seems quite decent.
I can draft the report using the DebenuPDFClass, but it will be very tedious if I were to create all the reports for my Accounting System.
I will try to spend some time to take a look at the TCPDF again.
Thanks.
Kelvin Chua

SINGAPORE

Admin 7/11/2016

Is there any specific issue you having with built-in DOMPDF converter? It is not perfect but gets the job done.

J
jump3r34 7/11/2016



Hi Ken,
Usually I will use DebenuPDFClass for other programming languages.
The problem of PDF Generators is that some generators are pretty slow when generating the reports. It may also utilizes hell a lot of memory when generating the reports; if the file size generated PDF is big.
The TCPDF seems quite decent.
I can draft the report using the DebenuPDFClass, but it will be very tedious if I were to create all the reports for my Accounting System.
I will try to spend some time to take a look at the TCPDF again.
Thanks.
Kelvin Chua

SINGAPORE


I have messed around with TCPDF and it is quite easy to integrate.
However, you will likely need to create "custom" PHP files and include them where you need to call them at.
I can understand you perhaps needing to create custom looking reports and having, maybe, multiple types of print formats per view - this may not be a bad option. I was going to explore it in a month or two because I need more control of the generated pdfs myself. It is funny you mentioned TCPDF - because that is exactly what I was messing around with as far as letter templates and reporting templates as well.

K
KelvinChua author 7/12/2016



Is there any specific issue you having with built-in DOMPDF converter? It is not perfect but gets the job done.


Hi,
Tested and found that it uses more memory and generation is a bit slow.
Thanks.
Kelvin Chua

SINGAPORE