insert pdf-page(s) into pdf-document using placeholders

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

insert pdf-page(s) into pdf-document using placeholders

by Helmut Denk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi itext-community,

i want to generate a pdf-document in 2 phases:

in phase 1 i want to generate a pdf where some of
the pages are placeholder-pages = empty pages that
contain some kind of marker-url that points at
another pdf-document.

the documents pointed to by the marker-urls contain exactly
one pdf-page with a graphic in portrait or landscape format.

in phase 2 the placeholder-pages should be replaced with
the pages from the pdf-documents that are referenced by
the marker-urls.

is this possible to do ? how can i specify placeholder-pages with
a marker-url  in phase 1 ? how can i find and read the marker-urls
and replace the placeholder-pages in phase 2 ?

anyone who has done something like this or knows an even
better way to achieve what i want ?

thanks & have a nice day



Re: insert pdf-page(s) into pdf-document using placeholders

by Helmut Denk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Helmut Denk wrote:
in phase 2 the placeholder-pages should be replaced with
the pages from the pdf-documents that are referenced by
the marker-urls.
i must note, that its ok to produce a new pdf-document
in phase 2, so more precisely phase 2 is a merge of multiple
pdf-documents into one, not a replacement.

probably my problem could also be solved if in phase 1 i am
able to produce a list like this:

*page*            *should be replaced by*
=========================================
10              /include-docs/include1.pdf
13              /include-docs/include1.pdf
21              /include-docs/include3.pdf


i see no way, how to produce such a list.

i do a docbook -> fo -> pdf transformation using xep.

Re: insert pdf-page(s) into pdf-document using placeholders

by Helmut Denk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i have found 2 interesting samples:

ReplacePagesHack
http://1t3xt.info/examples/browse/?page=example&id=290

ReplacePagesHack2
http://1t3xt.info/examples/browse/?page=example&id=291

they seem to fit my needs in some way ... but as they are
declared as 'hack', i try to be careful ... will have to explore
this in detail.

comments on this effort are still welcome ;-)

have a successful day