Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Merging PDFs without starting a new page

Bruno

2007-07-12

Replies:

Paul Jones wrote:
> Hi. I tried using PDFCopy to create one file out of three. It works but each
> PDF starts on a new page.
>
> However, each PDF is just a short paragraph. Is there a way to merge just
> the text without the blank space? I want to go from 3 PDFs with a paragraph
> in each to one PDF with three paragraphs.

PDF is a Page Description Language.
It describes pages, not paragraphs.
It's not a Word processing format
that keeps track of the text structure.

In other words: your question is unanswerable.

It's like saying: how can I look through a
mirror and see what's behind? The answer to
that question is: a mirror is not a window;
normally you can't look through a mirror.

'Normally' means there might be a workaround:
if you know how much space each paragraph takes,
you could import the pages, clip the imported
pages and combine them on one page. However,
this is not something I would advice unless
the paragraphs all have more or less the same
size and never exceed the clipped region.
You can't ask the PDF how much space each
paragraph is using.

best regards,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.