Re: PDF creation?

2013-04-23 Thread David Cantrell
On Mon, Apr 22, 2013 at 11:28:07AM +0100, Peter Corlett wrote: My *favourite* approach, which is almost certainly not the consensus answer, is to generate a LaTeX document (e.g. using Template.pm) and then run that through xelatex to generate a PDF. This does however require you to learn

Re: PDF creation?

2013-04-22 Thread Aaron Trevena
On 21 April 2013 20:06, Leo Lapworth l...@cuckoo.org wrote: On 21 April 2013 12:51, Roger Bell_West ro...@firedrake.org wrote: On Sun, Apr 21, 2013 at 07:43:11AM -0400, Mark Fowler wrote: I know I'm going to want to create the document from scratch, not fill in a template, and I'm probably

Re: PDF creation?

2013-04-22 Thread Peter Corlett
On Sun, Apr 21, 2013 at 07:43:11AM -0400, Mark Fowler wrote: In a few weeks I'm going to want to be creating PDFs from Perl, something I haven't done in a few years. What's the recommended approach these days? My *favourite* approach, which is almost certainly not the consensus answer, is to

Re: PDF creation?

2013-04-22 Thread Kieren Diment
Similarly one can use pandoc (markdown to pdf and many other formats including pod and TeX) in the same way. http://johnmacfarlane.net/pandoc I really like pandoc, although it is not bug free. On 22/04/2013, at 8:28 PM, Peter Corlett wrote: On Sun, Apr 21, 2013 at 07:43:11AM -0400, Mark Fowler

Re: PDF creation?

2013-04-22 Thread Mike Whitaker
On a similar subject, what PDF (or even text, assuming I can find something to extract the text on a page by page basis) indexing solutions are there out there in Perl? On 22 Apr 2013, at 11:42, Kieren Diment dim...@gmail.com wrote: Similarly one can use pandoc (markdown to pdf and many other

Re: PDF creation?

2013-04-22 Thread Jérôme Étévé
If you want full support for unicode strings and a good control of layout, I found that the simpliest solution is to use xelatex. I didn't find PDF::API2 fits in a multilingual environment. Also, http://www.pdflib.com/ is ok (very good layout capabities, but it's a commercial product), although

Re: PDF creation?

2013-04-22 Thread Roger Bell_West
On Mon, Apr 22, 2013 at 11:45:43AM +0100, Mike Whitaker wrote: On a similar subject, what PDF (or even text, assuming I can find something to extract the text on a page by page basis) indexing solutions are there out there in Perl? pdftotext and then throw the text at a generic indexing

Re: PDF creation?

2013-04-22 Thread Kieren Diment
With an optional job queue and expensive OCR package deal with scanned document. On 22/04/2013, at 8:57 PM, Roger Bell_West wrote: On Mon, Apr 22, 2013 at 11:45:43AM +0100, Mike Whitaker wrote: On a similar subject, what PDF (or even text, assuming I can find something to extract the text on

Re: PDF creation?

2013-04-22 Thread Aaron Trevena
On 22 April 2013 11:51, Jérôme Étévé jerome.et...@gmail.com wrote: If you want full support for unicode strings and a good control of layout, I found that the simpliest solution is to use xelatex. I didn't find PDF::API2 fits in a multilingual environment. What problem did you have on this

Re: PDF creation?

2013-04-22 Thread Bob Walker
On Mon, 22 Apr 2013, Roger Bell_West wrote: On Mon, Apr 22, 2013 at 11:45:43AM +0100, Mike Whitaker wrote: On a similar subject, what PDF (or even text, assuming I can find something to extract the text on a page by page basis) indexing solutions are there out there in Perl? pdftotext and

Re: PDF creation?

2013-04-22 Thread Yitzchak Scott-Thoennes
On Mon, Apr 22, 2013 at 3:28 AM, Peter Corlett ab...@cabal.org.uk wrote: My *favourite* approach, which is almost certainly not the consensus answer, is to generate a LaTeX document (e.g. using Template.pm) and then run that through xelatex to generate a PDF. This does however require you

PDF creation?

2013-04-21 Thread Mark Fowler
In a few weeks I'm going to want to be creating PDFs from Perl, something I haven't done in a few years. What's the recommended approach these days? I know I'm going to want to create the document from scratch, not fill in a template, and I'm probably going to want multi-line text and basic

Re: PDF creation?

2013-04-21 Thread Roger Bell_West
On Sun, Apr 21, 2013 at 07:43:11AM -0400, Mark Fowler wrote: I know I'm going to want to create the document from scratch, not fill in a template, and I'm probably going to want multi-line text and basic drawing (a horizontal line or two) I tend to use PDF::API2: now unmaintained, but gets the

Re: PDF creation?

2013-04-21 Thread Dave Cross
On 04/21/2013 12:43 PM, Mark Fowler wrote: In a few weeks I'm going to want to be creating PDFs from Perl, something I haven't done in a few years. What's the recommended approach these days? I know I'm going to want to create the document from scratch, not fill in a template, and I'm

Re: PDF creation?

2013-04-21 Thread Ruud H.G. van Tol
On 2013-04-21 13:43, Mark Fowler wrote: In a few weeks I'm going to want to be creating PDFs from Perl, something I haven't done in a few years. What's the recommended approach these days? I know I'm going to want to create the document from scratch, not fill in a template, and I'm probably

RE: PDF creation?

2013-04-21 Thread Steve Cookson
I know I'm going to want to create the document from scratch, not fill in a template, and I'm probably going to want multi-line text and basic drawing (a horizontal line or two) I use Wx::PdfPrinter, part of the wxPerl framework. It produces anything you want. I have a multi-page medical

Re: PDF creation?

2013-04-21 Thread Ben Vinnerd
+1 on wkhtml2pdf. I've used it in the past, it's awesome. Didn't know about PDF::WebKit, will have to check that out! On 21 April 2013 14:11, Ruud H.G. van Tol rv...@isolution.nl wrote: On 2013-04-21 13:43, Mark Fowler wrote: In a few weeks I'm going to want to be creating PDFs from Perl,

Re: PDF creation?

2013-04-21 Thread Smylers
Dave Cross writes: On 04/21/2013 12:43 PM, Mark Fowler wrote: ... creating PDFs from Perl ... ... when I want to do that I create an HTML document and convert it to a PDF Me too. If you are familiar with HTML and CSS, this may be less painful than learning something else. I'm currently

Re: PDF creation?

2013-04-21 Thread Mark Fowler
On Sun, Apr 21, 2013 at 9:08 AM, Dave Cross d...@dave.org.uk wrote: I don't know if it's the recommended approach - but when I want to do that I create an HTML document and convert it to a PDF using PDF::WebKit (