From jarich at perltraining.com.au Sun Mar 3 20:25:58 2013 From: jarich at perltraining.com.au (Jacinta Richardson) Date: Mon, 04 Mar 2013 15:25:58 +1100 Subject: [Melbourne-pm] Seeking Catalyst expert for immediate, two weeks consulting Message-ID: <51342256.8050001@perltraining.com.au> G'day Toby, Kahlil and MPM, Perl Training Australia has been approached by a business in Brisbane looking for 2 weeks of consulting on the best way for them to make a particular Catalyst application. I think I probably know enough to help them, but I'm not quite confident of that, since I haven't done an entire Catalyst application from creation to deployment all by myself, and thus am concerned I might not have the best answers for what might be some specific areas. They're confident about using Template Toolkit and FormHandler, but are not sure that DBIx::Class will support their business logic, so they're wondering whether they write their own layer over DBI (for example). They're also considering whether they should go with Plack or Starman or something else for deployment, etc. I am confident of helping them to decide between DBIx::Class and DBI, but not the latter. Their timeframe is pretty immediate, hoping to have these two weeks done before the end of the month. They prefer on-site, but would accept remote. If you're interested in helping them out, with a summary of your Catalyst experience, and I'll forward this client your details and you can both take it from there. All the best, Jacinta From kahlil.hodgson at dealmax.com.au Sun Mar 3 21:33:39 2013 From: kahlil.hodgson at dealmax.com.au (Kahlil Hodgson) Date: Mon, 04 Mar 2013 16:33:39 +1100 Subject: [Melbourne-pm] Seeking Catalyst expert for immediate, two weeks consulting In-Reply-To: <51342256.8050001@perltraining.com.au> References: <51342256.8050001@perltraining.com.au> Message-ID: <51343233.7050305@dealmax.com.au> On 04/03/13 15:25, Jacinta Richardson wrote: > Perl Training Australia has been approached by a business in Brisbane > looking for 2 weeks of consulting on the best way for them to make a > particular Catalyst application. I think I probably know enough to help > them, but I'm not quite confident of that, since I haven't done an > entire Catalyst application from creation to deployment all by myself, > and thus am concerned I might not have the best answers for what might > be some specific areas. Sounds interesting, but I have a growing list of deadlines that I can't get around, despite recent advances in the fields of human cloning and time travel. Happy to give advice on deployment etc in exchange for beer though ;-) Kal -- Kahlil (Kal) Hodgson GPG: C9A02289 Head of Technology (m) +61 (0) 4 2573 0382 DealMax Pty Ltd (w) +61 (0) 3 9008 5281 Suite 1415 401 Docklands Drive Docklands VIC 3008 Australia "All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1925 From alfiej at opera.com Tue Mar 5 13:54:10 2013 From: alfiej at opera.com (Alfie John) Date: Wed, 06 Mar 2013 08:54:10 +1100 Subject: [Melbourne-pm] Meeting Reminder: Thursday the 14th of March, 2013 Message-ID: <1362520450.8107.140661200454549.3D046A84@webmail.messagingengine.com> Hello Perl Mongers, The next Melbourne Perl Mongers meeting will be on Thursday the 14th of March, 2013 and will start around 6:30pm: ? Opera Software Level 1, 91-97 William Street Melbourne CBD Paul Fenwick will be giving a talk titled "Great things you've missed in Perl". Alfie -- Alfie John alfiej at opera.com From pjf at perltraining.com.au Mon Mar 11 21:35:59 2013 From: pjf at perltraining.com.au (Paul Fenwick) Date: Tue, 12 Mar 2013 15:35:59 +1100 Subject: [Melbourne-pm] Meeting Reminder: Thursday the 14th of March, 2013 In-Reply-To: <1362520450.8107.140661200454549.3D046A84@webmail.messagingengine.com> References: <1362520450.8107.140661200454549.3D046A84@webmail.messagingengine.com> Message-ID: <513EB0AF.6070000@perltraining.com.au> On 06/03/13 08:54, Alfie John wrote: > The next Melbourne Perl Mongers meeting will be on Thursday the 14th of > March, 2013 and will start around 6:30pm: That's *THIS THURSDAY*! So I'm doubly reminding everyone! > Opera Software > Level 1, 91-97 William Street > Melbourne CBD > > Paul Fenwick will be giving a talk titled "Great things you've missed in > Perl". aka "The Perl Renaissance". :) Looking forward to seeing you all there! Paul -- Paul Fenwick | http://perltraining.com.au/ Director of Training | Ph: +61 3 9354 6001 Perl Training Australia | Fax: +61 3 9354 2681 From alfiej at opera.com Wed Mar 13 13:22:51 2013 From: alfiej at opera.com (Alfie John) Date: Thu, 14 Mar 2013 07:22:51 +1100 Subject: [Melbourne-pm] Meeting Reminder (TONIGHT): Thursday the 14th of March, 2013 Message-ID: <1363206171.5031.140661203971665.69A7361F@webmail.messagingengine.com> Hello Perl Mongers, This is a friendly reminder that the next Melbourne Perl Mongers meeting is tonight and will start around 6:30pm: Opera Software Level 1, 91-97 William Street Melbourne CBD Paul Fenwick will be giving a talk titled "The Perl Renaissance". Alfie -- Alfie John alfiej at opera.com From ajsavige at yahoo.com.au Fri Mar 15 02:26:48 2013 From: ajsavige at yahoo.com.au (Andrew Savige) Date: Fri, 15 Mar 2013 02:26:48 -0700 (PDT) Subject: [Melbourne-pm] FW: 3/15/2013 10:26:48 AM Message-ID: <1363339608.75853.YahooMailNeo@web160102.mail.bf1.yahoo.com> http://www.parrismobilecarcare.com/pdgbhzar/qdgw/ccyf/aoc/nvr 3/15/2013 10:26:48 AM . Andrew Savige -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew_dent at dentaur.com Tue Mar 19 04:22:28 2013 From: andrew_dent at dentaur.com (Andrew Dent) Date: Tue, 19 Mar 2013 22:22:28 +1100 Subject: [Melbourne-pm] PDF::API2 Message-ID: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Hi Is there a template module, or file that can be used with PDF::API2? Or when PDF::API2 is used do people normally define the layout/style of the PDF file in their Perl code? I've looked in the documentation, and googled, but I can't find anything. Maybe I missed it. L In addition to PDF::API2, I looked at PDF::Template but it doesn't look like it is maintained much anymore. Cheers Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at vinnerd.com Tue Mar 19 04:47:35 2013 From: ben at vinnerd.com (Ben Vinnerd) Date: Tue, 19 Mar 2013 11:47:35 +0000 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: Hi Andrew, This might not be the answer you're looking for, but anyway... I looked into PDF CPAN modules a few years ago and decided to use wkhtmltopdf instead. https://code.google.com/p/wkhtmltopdf/ It's great to generate PDF docs, and free. You just create an HTML page and run the wkhtmltopdf command. Might be worth a look? Like I said though, might not be what you're looking for. Ben On 19 March 2013 11:22, Andrew Dent wrote: > Hi**** > > ** ** > > Is there a template module, or file that can be used with PDF::API2?**** > > Or when PDF::API2 is used do people normally define the layout/style of > the PDF file in their Perl code? **** > > I?ve looked in the documentation, and googled, but I can?t find anything. > Maybe I missed it. L**** > > ** ** > > In addition to PDF::API2, I looked at PDF::Template but it doesn?t look > like it is maintained much anymore. **** > > ** ** > > Cheers**** > > ** ** > > Andrew**** > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew_dent at dentaur.com Tue Mar 19 05:27:19 2013 From: andrew_dent at dentaur.com (Andrew Dent) Date: Tue, 19 Mar 2013 23:27:19 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: <000301ce249d$2873dbb0$795b9310$@dentaur.com> Thanks, For this project creating a HTML file and then converting that file to a PDF would be ok. I can delete the HTML file after the conversion. But the HTML to PDF tool needs to be available in Ubuntu 12.04 LTS Server. Unfortunately it doesn?t look like wkhtmltopdf is available for Ubuntu 12.04 LTS. There is only one type of PDF file to create, so I can bundle all the Perl code defining the layout of the PDF into a module. But it would be nice to have a template file defining the PDF layout that is separate to the code. From: Melbourne-pm [mailto:melbourne-pm-bounces+andrew_dent=dentaur.com at pm.org] On Behalf Of Ben Vinnerd Sent: Tuesday, 19 March 2013 10:48 PM To: Melbourne Perlmongers Subject: Re: [Melbourne-pm] PDF::API2 Hi Andrew, This might not be the answer you're looking for, but anyway... I looked into PDF CPAN modules a few years ago and decided to use wkhtmltopdf instead. https://code.google.com/p/wkhtmltopdf/ It's great to generate PDF docs, and free. You just create an HTML page and run the wkhtmltopdf command. Might be worth a look? Like I said though, might not be what you're looking for. Ben On 19 March 2013 11:22, Andrew Dent wrote: Hi Is there a template module, or file that can be used with PDF::API2? Or when PDF::API2 is used do people normally define the layout/style of the PDF file in their Perl code? I?ve looked in the documentation, and googled, but I can?t find anything. Maybe I missed it. L In addition to PDF::API2, I looked at PDF::Template but it doesn?t look like it is maintained much anymore. Cheers Andrew _______________________________________________ Melbourne-pm mailing list Melbourne-pm at pm.org http://mail.pm.org/mailman/listinfo/melbourne-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at vinnerd.com Tue Mar 19 05:40:33 2013 From: ben at vinnerd.com (Ben Vinnerd) Date: Tue, 19 Mar 2013 12:40:33 +0000 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <000301ce249d$2873dbb0$795b9310$@dentaur.com> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> <000301ce249d$2873dbb0$795b9310$@dentaur.com> Message-ID: Hey, It's not available as part of the Ubuntu distro (i think), but you can download the wkhtmltopdf binary (there are 2 versions: 32bit and 64bit). Have a look at wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2 and wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 on the Downloads page. You can run the binary like: /wkhtmltopdf-amd64 --footer-center 'Page [page] of [topage]' --footer-font-size 8 my.html my.pdf Ben On 19 March 2013 12:27, Andrew Dent wrote: > Thanks, **** > > For this project creating a HTML file and then converting that file to a > PDF would be ok. I can delete the HTML file after the conversion. **** > > But the HTML to PDF tool needs to be available in Ubuntu 12.04 LTS Server. > **** > > Unfortunately it doesn?t look like wkhtmltopdf is available for Ubuntu > 12.04 LTS. **** > > ** ** > > There is only one type of PDF file to create, so I can bundle all the Perl > code defining the layout of the PDF into a module. **** > > But it would be nice to have a template file defining the PDF layout that > is separate to the code. **** > > ** ** > > *From:* Melbourne-pm [mailto:melbourne-pm-bounces+andrew_dent= > dentaur.com at pm.org] *On Behalf Of *Ben Vinnerd > *Sent:* Tuesday, 19 March 2013 10:48 PM > *To:* Melbourne Perlmongers > *Subject:* Re: [Melbourne-pm] PDF::API2**** > > ** ** > > Hi Andrew,**** > > ** ** > > This might not be the answer you're looking for, but anyway...**** > > ** ** > > I looked into PDF CPAN modules a few years ago and decided to use > wkhtmltopdf instead.**** > > https://code.google.com/p/wkhtmltopdf/**** > > ** ** > > It's great to generate PDF docs, and free. You just create an HTML page > and run the wkhtmltopdf command.**** > > ** ** > > Might be worth a look? Like I said though, might not be what you're > looking for.**** > > ** ** > > Ben**** > > ** ** > > ** ** > > On 19 March 2013 11:22, Andrew Dent wrote:**** > > Hi**** > > **** > > Is there a template module, or file that can be used with PDF::API2?**** > > Or when PDF::API2 is used do people normally define the layout/style of > the PDF file in their Perl code? **** > > I?ve looked in the documentation, and googled, but I can?t find anything. > Maybe I missed it. L**** > > **** > > In addition to PDF::API2, I looked at PDF::Template but it doesn?t look > like it is maintained much anymore. **** > > **** > > Cheers**** > > **** > > Andrew**** > > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm**** > > ** ** > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From myfwhite at gmail.com Tue Mar 19 05:41:48 2013 From: myfwhite at gmail.com (Myf White) Date: Tue, 19 Mar 2013 23:41:48 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <000301ce249d$2873dbb0$795b9310$@dentaur.com> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> <000301ce249d$2873dbb0$795b9310$@dentaur.com> Message-ID: I have encountered this problem before. I also only needed one single layout, and would have preferred a templating tool, but I ended up writing a module which used PDF::Table and passing all of my data to that. It worked well for me, because a) the data was suitable for tables and b) I was gonna need a module to wrap it anyway for various reasons. Not sure if it would suit your layout requirements. Kind Regards, Myf White *Phone: *0413 757 052* Email:* myfwhite at gmail.com On Tue, Mar 19, 2013 at 11:27 PM, Andrew Dent wrote: > Thanks, **** > > For this project creating a HTML file and then converting that file to a > PDF would be ok. I can delete the HTML file after the conversion. **** > > But the HTML to PDF tool needs to be available in Ubuntu 12.04 LTS Server. > **** > > Unfortunately it doesn?t look like wkhtmltopdf is available for Ubuntu > 12.04 LTS. **** > > ** ** > > There is only one type of PDF file to create, so I can bundle all the Perl > code defining the layout of the PDF into a module. **** > > But it would be nice to have a template file defining the PDF layout that > is separate to the code. **** > > ** ** > > *From:* Melbourne-pm [mailto:melbourne-pm-bounces+andrew_dent= > dentaur.com at pm.org] *On Behalf Of *Ben Vinnerd > *Sent:* Tuesday, 19 March 2013 10:48 PM > *To:* Melbourne Perlmongers > *Subject:* Re: [Melbourne-pm] PDF::API2**** > > ** ** > > Hi Andrew,**** > > ** ** > > This might not be the answer you're looking for, but anyway...**** > > ** ** > > I looked into PDF CPAN modules a few years ago and decided to use > wkhtmltopdf instead.**** > > https://code.google.com/p/wkhtmltopdf/**** > > ** ** > > It's great to generate PDF docs, and free. You just create an HTML page > and run the wkhtmltopdf command.**** > > ** ** > > Might be worth a look? Like I said though, might not be what you're > looking for.**** > > ** ** > > Ben**** > > ** ** > > ** ** > > On 19 March 2013 11:22, Andrew Dent wrote:**** > > Hi**** > > **** > > Is there a template module, or file that can be used with PDF::API2?**** > > Or when PDF::API2 is used do people normally define the layout/style of > the PDF file in their Perl code? **** > > I?ve looked in the documentation, and googled, but I can?t find anything. > Maybe I missed it. L**** > > **** > > In addition to PDF::API2, I looked at PDF::Template but it doesn?t look > like it is maintained much anymore. **** > > **** > > Cheers**** > > **** > > Andrew**** > > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm**** > > ** ** > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrewmcnnz at gmail.com Tue Mar 19 07:14:17 2013 From: andrewmcnnz at gmail.com (Andrew McNaughton) Date: Wed, 20 Mar 2013 01:14:17 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <000301ce249d$2873dbb0$795b9310$@dentaur.com> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> <000301ce249d$2873dbb0$795b9310$@dentaur.com> Message-ID: <514872B9.5020105@mcnaughty.com> You could think about an XSL-FO oriented approach, doing the actual processing with something like Apache fop (http://xmlgraphics.apache.org/fop/). There's a perl module to talk to it (XML::ApacheFOP). This is going to be much more involved than going via HTML, and is most likely overkill. Depends on your requirements though. Andrew On 19/03/13 23:27, Andrew Dent wrote: > > Thanks, > > For this project creating a HTML file and then converting that file to > a PDF would be ok. I can delete the HTML file after the conversion. > > But the HTML to PDF tool needs to be available in Ubuntu 12.04 LTS > Server. > > Unfortunately it doesn?t look like wkhtmltopdf is available for Ubuntu > 12.04 LTS. > > > > There is only one type of PDF file to create, so I can bundle all the > Perl code defining the layout of the PDF into a module. > > But it would be nice to have a template file defining the PDF layout > that is separate to the code. > > > > *From:*Melbourne-pm > [mailto:melbourne-pm-bounces+andrew_dent=dentaur.com at pm.org] *On > Behalf Of *Ben Vinnerd > *Sent:* Tuesday, 19 March 2013 10:48 PM > *To:* Melbourne Perlmongers > *Subject:* Re: [Melbourne-pm] PDF::API2 > > > > Hi Andrew, > > > > This might not be the answer you're looking for, but anyway... > > > > I looked into PDF CPAN modules a few years ago and decided to use > wkhtmltopdf instead. > > https://code.google.com/p/wkhtmltopdf/ > > > > It's great to generate PDF docs, and free. You just create an HTML > page and run the wkhtmltopdf command. > > > > Might be worth a look? Like I said though, might not be what you're > looking for. > > > > Ben > > > > > > On 19 March 2013 11:22, Andrew Dent > wrote: > > Hi > > > > Is there a template module, or file that can be used with PDF::API2? > > Or when PDF::API2 is used do people normally define the layout/style > of the PDF file in their Perl code? > > I?ve looked in the documentation, and googled, but I can?t find > anything. Maybe I missed it. L > > > > In addition to PDF::API2, I looked at PDF::Template but it doesn?t > look like it is maintained much anymore. > > > > Cheers > > > > Andrew > > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm > > > > > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm -------------- next part -------------- An HTML attachment was scrubbed... URL: From ddick at iinet.net.au Tue Mar 19 12:34:37 2013 From: ddick at iinet.net.au (David Dick) Date: Wed, 20 Mar 2013 06:34:37 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: <5148BDCD.6080100@iinet.net.au> On 03/19/2013 10:47 PM, Ben Vinnerd wrote: > Hi Andrew, > > This might not be the answer you're looking for, but anyway... ... > Might be worth a look? Like I said though, might not be what you're > looking for. a very similar tool is htmldoc. it's got a debian package, but it only supports html 3.2 (no css) From greg.george at orica.com Tue Mar 19 13:33:26 2013 From: greg.george at orica.com (greg.george at orica.com) Date: Wed, 20 Mar 2013 07:33:26 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: Hi Andrew, I have also used CAM::PDF - PDF manipulation library with good sucess and used an existing PDF as a template with PDF::Reuse - Reuse and mass produce PDF documents as well as PDF::API2 and site/lib/PDF/CreateSimple.pm which allows easy construction of line and text primatives (which I also have wrapped in another simplification to make it all mm dimensions) Regards, Greg George Finance, Information Technology, Global IT Infrastructure & Operations , Globalisation Project Orica | www.orica.com +61 3 9091 2492 | +61 404 892 159 | +61 3 9091 2444 | greg.george at orica.com From: "Andrew Dent" To: "'Melbourne Perlmongers'" , Date: 19/03/2013 10:22 PM Subject: [Melbourne-pm] PDF::API2 Sent by: "Melbourne-pm" Hi Is there a template module, or file that can be used with PDF::API2? Or when PDF::API2 is used do people normally define the layout/style of the PDF file in their Perl code? I?ve looked in the documentation, and googled, but I can?t find anything. Maybe I missed it. L In addition to PDF::API2, I looked at PDF::Template but it doesn?t look like it is maintained much anymore. Cheers Andrew_______________________________________________ Melbourne-pm mailing list Melbourne-pm at pm.org http://mail.pm.org/mailman/listinfo/melbourne-pm *********************************************************************************************************************************************************************************************** Please consider the environment before printing this e-mail. This message is intended solely for the individual(s) and entity(s) addressed. It is confidential and may contain legally privileged information. The use, copying or distribution of this message or any information it contains, by anyone other than the addressee, is prohibited. If you have received this message in error, please notify postmaster at orica.com. The mailbox address from which this message has been sent is for business mail only. Mail sent to it may be subject to security scanning and delivery on non-business messages sent to this address may not occur. Thank you. *********************************************************************************************************************************************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 262 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 193 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 218 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 248 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 2398 bytes Desc: not available URL: From kahlil.hodgson at dealmax.com.au Tue Mar 19 16:55:50 2013 From: kahlil.hodgson at dealmax.com.au (Kahlil Hodgson) Date: Wed, 20 Mar 2013 10:55:50 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: <5148FB06.6090002@dealmax.com.au> On 20/03/13 07:33, greg.george at orica.com wrote: > I have also used CAM::PDF - PDF manipulation library with good sucess Just read the perldoc and CAM::PDF looks very cool. Think I'll be giving that whirl next week. Noticed the following right at the end of the doc: "$doc->changeString($object, $hashref) Alter all instances of a given string. The hashref is a dictionary of from-string and to-string. If the from-string looks like regex(...) then it is interpreted as a Perl regular expression and is eval'ed. Otherwise the search-and-replace is literal." So it looks like CAM::PDF can be used on, say, a template PDF created with libreoffice with complex/structured placeholder strings. Another PDF creation module that I've used with a lot of success is PDF::Haru. This is a simple wrapper around libharu (open source written in C) which you may want to consider if speed/memory is an issue. Its no free lunch though -- you still have to get your head around how PDF documents are structured and how the model corresponds to the visual representation. K -- Kahlil (Kal) Hodgson GPG: C9A02289 Head of Technology (m) +61 (0) 4 2573 0382 DealMax Pty Ltd (w) +61 (0) 3 9008 5281 Suite 1415 401 Docklands Drive Docklands VIC 3008 Australia "All parts should go together without forcing. You must remember that the parts you are reassembling were disassembled by you. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1925 From jason at lecstor.com Tue Mar 19 17:06:31 2013 From: jason at lecstor.com (Jason Galea) Date: Wed, 20 Mar 2013 10:06:31 +1000 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: Hi Andrew, just in case it's at all useful there's also my PDF::Boxer module. I mainly created it to simplify creating PDF invoices and similar documents. I haven't been able to give it any love for a long time due to work (non-perl) and family but it worked for what I needed at the time. https://metacpan.org/module/PDF::Boxer https://github.com/lecstor/PDF--Boxer cheers, J On Tue, Mar 19, 2013 at 9:22 PM, Andrew Dent wrote: > Hi**** > > ** ** > > Is there a template module, or file that can be used with PDF::API2?**** > > Or when PDF::API2 is used do people normally define the layout/style of > the PDF file in their Perl code? **** > > I?ve looked in the documentation, and googled, but I can?t find anything. > Maybe I missed it. L**** > > ** ** > > In addition to PDF::API2, I looked at PDF::Template but it doesn?t look > like it is maintained much anymore. **** > > ** ** > > Cheers**** > > ** ** > > Andrew**** > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm > -- Jason Galea lecstor.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kim at hawtin.net.au Tue Mar 19 17:56:44 2013 From: kim at hawtin.net.au (Kim Hawtin) Date: Wed, 20 Mar 2013 11:26:44 +1030 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> <000301ce249d$2873dbb0$795b9310$@dentaur.com> Message-ID: <5149094C.9010301@hawtin.net.au> On 19/03/13 23:10, Ben Vinnerd wrote: > It's not available as part of the Ubuntu distro (i think), but you can > download the wkhtmltopdf binary (there are 2 versions: 32bit and 64bit). > > Have a look at wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2 and > wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 on the Downloads page. > > You can run the binary like: > > /wkhtmltopdf-amd64 --footer-center 'Page [page] of [topage]' > --footer-font-size 8 my.html my.pdf This is what we use. You want the static version as it contains all of webkit and odd libraries pre-built, IIRR. Its become quite handy to switch .css dependencies and then print out pages to .pdf. We are using it for all sorts of things, given we already have those pages available as .html. regards, Kim From adrian at ash-blue.org Tue Mar 19 18:51:18 2013 From: adrian at ash-blue.org (Adrian Masters) Date: Wed, 20 Mar 2013 12:51:18 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: <5149094C.9010301@hawtin.net.au> References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> <000301ce249d$2873dbb0$795b9310$@dentaur.com> <5149094C.9010301@hawtin.net.au> Message-ID: <720BD424-A482-4F3B-8B02-8DDB2E2A9B77@ash-blue.org> I'm using wkhtmltopdf currently on W7 to convert a large wiki entry into a static snapshot in PDF. It works pretty well, but if you have big HTML tables, page break control is a bit iffy. I haven't had time to experiment with CSS fixes for it. It is good, cheap and fast for HTML to PDF. Ad On 20/03/2013, at 11:56 AM, Kim Hawtin wrote: > On 19/03/13 23:10, Ben Vinnerd wrote: >> It's not available as part of the Ubuntu distro (i think), but you can >> download the wkhtmltopdf binary (there are 2 versions: 32bit and 64bit). >> >> Have a look at wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2 and >> wkhtmltopdf-0.11.0_rc1-static-amd64.tar.bz2 on the Downloads page. >> >> You can run the binary like: >> >> /wkhtmltopdf-amd64 --footer-center 'Page [page] of [topage]' >> --footer-font-size 8 my.html my.pdf > > This is what we use. You want the static version as it contains all of webkit and odd libraries pre-built, IIRR. > > Its become quite handy to switch .css dependencies and then print out pages to .pdf. We are using it for all sorts of things, given we already have those pages available as .html. > > regards, > > Kim > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm From andrew_dent at dentaur.com Wed Mar 20 03:17:50 2013 From: andrew_dent at dentaur.com (Andrew Dent) Date: Wed, 20 Mar 2013 21:17:50 +1100 Subject: [Melbourne-pm] PDF::API2 In-Reply-To: References: <003501ce2494$0a5363c0$1efa2b40$@dentaur.com> Message-ID: <004601ce2554$2e756850$8b6038f0$@dentaur.com> Thanks everyone for your suggestions. Jason; I think PDF::Boxer is the closest to what I am looking for, so I will give your module a try. The documents I am creating are payment receipts that include a listing of the history of any previous part payments for the same purchase. Very similar in layout to invoices of multiple items, so it should be suitable. From: Jason Galea [mailto:jason at lecstor.com] Sent: Wednesday, 20 March 2013 11:07 AM To: Andrew Dent Cc: Melbourne Perlmongers Subject: Re: [Melbourne-pm] PDF::API2 Hi Andrew, just in case it's at all useful there's also my PDF::Boxer module. I mainly created it to simplify creating PDF invoices and similar documents. I haven't been able to give it any love for a long time due to work (non-perl) and family but it worked for what I needed at the time. https://metacpan.org/module/PDF::Boxer https://github.com/lecstor/PDF--Boxer cheers, J On Tue, Mar 19, 2013 at 9:22 PM, Andrew Dent wrote: Hi Is there a template module, or file that can be used with PDF::API2? Or when PDF::API2 is used do people normally define the layout/style of the PDF file in their Perl code? I've looked in the documentation, and googled, but I can't find anything. Maybe I missed it. L In addition to PDF::API2, I looked at PDF::Template but it doesn't look like it is maintained much anymore. Cheers Andrew _______________________________________________ Melbourne-pm mailing list Melbourne-pm at pm.org http://mail.pm.org/mailman/listinfo/melbourne-pm -- Jason Galea lecstor.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From alfiej at opera.com Thu Mar 21 15:20:42 2013 From: alfiej at opera.com (Alfie John) Date: Fri, 22 Mar 2013 09:20:42 +1100 Subject: [Melbourne-pm] Meeting - Wednesday the 10th of April, 2013 Message-ID: <1363904442.14731.140661207528613.0E743841@webmail.messagingengine.com> Hello Perl Mongers, The next Melbourne Perl Mongers meeting will be on Wednesday the 10th of April, 2013 and will start around 6:30pm: Strategic Data Level 2, 51-55 Johnston Street, Fitzroy Jacinta Richardson will be giving a talk titled "Solving Interesting Problems by Writing Parsers". Alfie -- Alfie John alfiej at opera.com From mathew.blair.robertson at gmail.com Sun Mar 24 18:27:31 2013 From: mathew.blair.robertson at gmail.com (Mathew Robertson) Date: Mon, 25 Mar 2013 12:27:31 +1100 Subject: [Melbourne-pm] Operator precedence to watch out for... Message-ID: I had a case where I was doing this: if ($x." ".$y =~ /something/) { do_foo; } This was always evaluating to true - due to $x being true. ie: the regex-match only ever applied to $y. Looking up perlop, I was a little surprised to find that this regex test-operator has higher precedence that other combining-operators. ie: compare with: $x + $y <= $z Just something to watch out for. cheers, Mathew Robertson -------------- next part -------------- An HTML attachment was scrubbed... URL: From brendon.oliver at gmail.com Sun Mar 24 19:27:14 2013 From: brendon.oliver at gmail.com (Brendon Oliver) Date: Mon, 25 Mar 2013 11:27:14 +0900 Subject: [Melbourne-pm] Operator precedence to watch out for... In-Reply-To: References: Message-ID: On Mon, Mar 25, 2013 at 10:27 AM, Mathew Robertson wrote: > I had a case where I was doing this: > > if ($x." ".$y =~ /something/) { > do_foo; > } > > This was always evaluating to true - due to $x being true. ie: the > regex-match only ever applied to $y. > Personally, I think I'd at least parenthesise the concatenation, if not move it to a temp variable for the sake of clarity ;-) .... and no "gotcha" that way. cheers, - b. From melbourne-pm at mjch.net Wed Mar 27 21:29:31 2013 From: melbourne-pm at mjch.net (Malcolm Herbert) Date: Thu, 28 Mar 2013 15:29:31 +1100 Subject: [Melbourne-pm] Moose vs DBIx::Class Message-ID: <20130328042930.GB15666@deimos.ergonaut.org> I'm at a point where I want to use Moose-style classes with DBIx::Class style classes. At the moment I've got two distinct sets of code with almost the same content in each ... obviously this isn't an ideal situation as there's two sets of things to maintain ... What do other people use in this situation? DBIx::Class::MooseColumns looks promising, however it claims to be alpha quality .. has anyone used this module? Regards, Malcolm -- Malcolm Herbert This brain intentionally mjch at mjch.net left blank -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 833 bytes Desc: not available URL: From myfwhite at gmail.com Wed Mar 27 23:07:57 2013 From: myfwhite at gmail.com (Myf White) Date: Thu, 28 Mar 2013 17:07:57 +1100 Subject: [Melbourne-pm] Moose vs DBIx::Class In-Reply-To: <20130328042930.GB15666@deimos.ergonaut.org> References: <20130328042930.GB15666@deimos.ergonaut.org> Message-ID: I use DBIx::Class with DBIx::Class::Schema::Loader's make_schema_at. make_schema_at has an option "use_moose" which I have not used because I am using Mouse mostly rather than Moose. I did investigate using it and converting them to Mouse, but that didn't pan out to be a single character change in each module like I hoped. However, the output from using that flag seemed like normal Moose, and perfectly suitable for adding methods to. Documentation for it is at https://metacpan.org/module/DBIx::Class::Schema::Loader::Base#use_moose Kind Regards, Myf White *Email:* myfwhite at gmail.com On Thu, Mar 28, 2013 at 3:29 PM, Malcolm Herbert wrote: > I'm at a point where I want to use Moose-style classes with DBIx::Class > style classes. At the moment I've got two distinct sets of code with > almost the same content in each ... obviously this isn't an ideal > situation as there's two sets of things to maintain ... > > What do other people use in this situation? DBIx::Class::MooseColumns > looks promising, however it claims to be alpha quality .. has anyone > used this module? > > Regards, > Malcolm > > -- > Malcolm Herbert This brain intentionally > mjch at mjch.net left blank > > _______________________________________________ > Melbourne-pm mailing list > Melbourne-pm at pm.org > http://mail.pm.org/mailman/listinfo/melbourne-pm > -------------- next part -------------- An HTML attachment was scrubbed... URL: