[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PDF invoice pain



Hi everyone

I have found the cause of this problem. It seems that <?lsmb
taxdescription ?> does NOT escape the "%" sign. The workaround for me
was to remove this variable and replace it with the text it contains,
with the % properly escaped.

To track down the problem I examined ledgersmb's output by adding a
crude hack in LedgerSMB/Form.pm:

        if ( $self->{format} eq 'pdf' ) {
            my $rrr = "/tmp/output.tex";
            system(
"cp $self->{tmpfile} $rrr"
            );

This copies the output to a file in /tmp prior to running pdflatex, so
I could see where the problem was.

Thanks to all those that offered advice

Regards
Phil