Proper/best way to merge PDFs from Ruby?

View: New views
2 Messages — Rating Filter:   Alert me  

Proper/best way to merge PDFs from Ruby?

by Hal Fulton-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Doing simple concatenation of PDF files.

At the moment I'm invoking pdftk from within Ruby...
works fine, but feels ugly, and I don't want the dependency.

Any good way to do this? Even a one-off would be welcome...

Cheers,
Hal

Re: Proper/best way to merge PDFs from Ruby?

by Gregory Brown :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 5, 2009 at 3:04 AM, Hal Fulton <rubyhacker@...> wrote:
> Doing simple concatenation of PDF files.
>
> At the moment I'm invoking pdftk from within Ruby...
> works fine, but feels ugly, and I don't want the dependency.
>
> Any good way to do this? Even a one-off would be welcome...

This is what I tell Prawn users to do, so unfortunately for now I
don't have a better suggestion.
PDF merge is a non-trivial operation.   But we may end up with
something sooner or later...

-greg