Append information to a PDF document

11 views
Skip to first unread message

Henrik Ekenberg

unread,
Nov 10, 2010, 1:14:11 PM11/10/10
to Prawn
Hi,

I need to add information in one PDF document like name & adress in
the area for this purpose.
Is it possible to add information to an existing pdf file ?

I search for some information but couldn't found something clear.
Maybe you have some example or URL ?

B.R
H.E

James Healy

unread,
Nov 10, 2010, 1:17:14 PM11/10/10
to prawn...@googlegroups.com

Search the google group for "templates", you should get some useful
matches.

Also check out the examples/general/templates.rb sample in the source.

-- James Healy <ji...@deefa.com> Thu, 11 Nov 2010 05:17:07 +1100

Henrik Ekenberg

unread,
Nov 11, 2010, 8:40:21 AM11/11/10
to Prawn
Hi,

Works good with template.
I have just one "small" issue.
I know how to write on first page but get blocked how to write on
second or third page.

Any "next" page command?

I test : pdf.start_new_page(:layout => :portrait) but this create an
empty page between page 1 and 2.

B.R
H.E

Brad Ediger

unread,
Nov 11, 2010, 9:53:22 AM11/11/10
to prawn...@googlegroups.com
On Thu, Nov 11, 2010 at 7:40 AM, Henrik Ekenberg <hen...@ekenberg.com> wrote:
> Hi,
>
> Works good with template.
> I have just one "small" issue.
> I know how to write on first page but get blocked how to write on
> second or third page.
>
> Any "next" page command?
>
> I test :  pdf.start_new_page(:layout => :portrait) but this create an
> empty page between page 1 and 2.

start_new_page always creates a new, blank page. pdf.go_to_page(n)
will take you to the nth page (starting from 1).

-be

Reply all
Reply to author
Forward
0 new messages