CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #5545

Formhandler and old Generator_TCPDF

Added by Tapio Brusiin over 3 years ago. Updated over 2 years ago.

Status:Closed Start date:2009-11-28
Priority:Must have Due date:
Assignee:Reinhard Führicht % Done:

80%

Category:Generator
Target version:-
Votes: 0

Description

Sorry if I am bugging with a problem already solved, but couldn't find fix to this as I was browsing issues.

Formhandler doesn't seem to support old Generator_TCPDF, giving "Fatal error: Call to undefined method Tx_Formhandler_Generator_TCPDF::init()" in ext/formhandler/Classes/Finisher/Tx_Formhandler_Finisher_Mail.php on line 595

Could somebody please fix that?

I know there is WebkitPDF, but being limited to non-windows servers it's not "universal", and therefore support of old Generator_TCPDF would be crucial.

All the best to everyone in the team,
Tapio Brusiin

T3X_formhandler-0_9_4-trunk.t3x - Trunk version of 2009-12-17 19:41 (3 MB) Reinhard Führicht, 2009-12-17 19:41

T3X_formhandler-0_9_4-z-200912212023.t3x (3 MB) Reinhard Führicht, 2009-12-21 20:24

Associated revisions

Revision 7731
Added by Ingo Schmitt over 5 years ago

  • Fixed Bug 5545

History

Updated by Reinhard Führicht over 3 years ago

  • Category changed from Finisher to Generator

There is a build for Windows too. Not of the extension webkitpdf, but of the script the extension uses. Have a look here:

http://code.google.com/p/wkhtmltopdf/downloads/list

Anyway, I will try to integrate TCPDF again since you have a good point by saying that it's not "universal" anymore. I'm afraid it will take me a while, cause I'm quite busy right now. Maybe I can make it until the end of the week.

Updated by Reinhard Führicht over 3 years ago

Work in progress.

Updated by Reinhard Führicht over 3 years ago

I just committed some changes to trunk.

Good news: Generator_TcPdf is back again for frontend PDF generation.
Bad news: Hopefully none! :-) I did some basic testing and it seems to work fine. Please try it out and report any problem here.

As far as I know, you are not familiar with SVN, so I have attached a t3x file of the current version.

Updated by Reinhard Führicht over 3 years ago

  • % Done changed from 0 to 50

I just realized that PDF generation for sending them along with mail is NOT working with this generator at the moment. I will fix this tomorrow.

Updated by Reinhard Führicht over 3 years ago

  • % Done changed from 50 to 80

It took me quite some time to figure out where the problem was, but Generator_TcPdf seems to work fine now.

As I still have to add documentation, here is my TypoScript setup for now:

finishers {
    1.class = Finisher_Mail
    1.config {
        admin {
            to_email = example@domain.tld
            from_email = example@domain.tld
            attachPDF {
                class = Generator_TcPdf
                config {
                    storeInTempFile = 1
                    checkBinaryCrLf = lastname,firstname
                    returnFileName = 1
                }
            }
        }
        user {
            to_email = example@domain.tld
            from_email = example@domain.tld
            attachPDF {
                class = Generator_TcPdf
                config {
                    storeInTempFile = 1
                    checkBinaryCrLf = lastname,firstname
                    returnFileName = 1
                }
            }
        }
    }
}

Updated by Reinhard Führicht over 3 years ago

Here is the current trunk version as t3x.

Updated by Reinhard Führicht over 3 years ago

  • Status changed from New to Closed

Changes are included in current version in TER (0.9.5).
Please open a new issue, if you find any problems.

Also available in: Atom PDF