Tue Feb 25 21:58:26 2020 tturner [...] torrid-tech.com - Correspondence added
Phil,
As I emailed before I have 2.3.7 version of API2 but older 5.10.1 version of Perl.
Hosting company says that version is what is shipped with the server.
Nevertheless, I found the problem and it was adding: align => 'justified'
Removing that fixed the problem, but on older version of API2 that worked fine.
I may at some point switch to Builder but for now I just have to get these scripts working in production again.
Many thanks for your help.
Regards,
-Tim
Tue Feb 25 23:23:37 2020 PMPERRY [...] cpan.org - Correspondence added
PDF::API2 2.037 will supposedly still run on Perl 5.010. PDF::Builder requires 5.018 to install; I don't know if it will run on earlier Perls.
I took a quick look at the "justified" code, and see something that MAY be an issue: in Content.pm's text_fill_justified method, there is a call to "
scalar split /\s/, $line". I vaguely recall seeing error messages about such a construct in more recent Perl versions -- could it be that your host has configured Perl to suppress warning messages (especially deprecated functions)? Anyway, just to see if you can use "justified", try changing that line to "
scalar(split(/\s/, $line))". You have only normal ASCII spaces between words? That's all I can think of at this point.
If at some point you decide to install PDF::Builder, and have issues, please open a support ticket there instead of here, to keep from cluttering up the PDF::API2 support system. Good luck!
Wed Feb 26 15:10:22 2020 tturner [...] torrid-tech.com - Correspondence added
Hey Phil,
This code change fixed the problem with justified text in paragraph! Indeed this was the trouble all along.
So is API2 not really supported anymore and that is why you started Builder? If API2 is supported, why would that item not be fixed in the latest version?
Thank you so much for your help!
Regards,
-Tim
Wed Feb 26 17:59:53 2020 PMPERRY [...] cpan.org - Correspondence added
On Wed Feb 26 15:10:22 2020, tturner@torrid-tech.com wrote:
Hey Phil,
This code change fixed the problem with justified text in paragraph! Indeed this was the trouble all along.
That's great to hear! So your production system is now up and running?
So is API2 not really supported anymore and that is why you started Builder? If API2 is supported, why would that item not be fixed in the latest version?
I wouldn't say that API2 isn't supported any more -- 2.037 was just released a few weeks ago. For whatever reason, Steve has chosen not to fix it yet. I started Builder because I wasn't happy with the rate of fixing things on API2, and wanted to put other features in that Steve didn't want in it.
Thank you so much for your help!
Regards,
-Tim
Wed Feb 26 18:03:26 2020 tturner [...] torrid-tech.com - Correspondence added
Yes production system is back in running order!