You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by DA...@MOBI.CH on 2003/12/27 18:17:00 UTC

concat static pdf

--- Erhalten von  DIR.U106567 031/389 7810                   27-12-03 18.17

Hello Cocoon Users

I have a question about concatenating static pdf files in Cocoon.

I create pdf files with FOP through Cocoon, which works fine. Now, in the
same response, I have to append one or more static pdf files, which are on
the server, to the created one. How can I manage this in Cocoon?

My idea was to use iText. I have tried to write an xsp that would call
com.lowagie.tools.concat_pdf, unsuccesfully.

Thank you in advance
-- Daniel

---- 27-12-03 18.17 ---- Gesendet an   ------------------------------------
  -> users@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: concat static pdf

Posted by Andrzej Jan Taramina <an...@chaeron.com>.
> I create pdf files with FOP through Cocoon, which works fine. Now, in the same
> response, I have to append one or more static pdf files, which are on the
> server, to the created one. How can I manage this in Cocoon?
> 
> My idea was to use iText. I have tried to write an xsp that would call
> com.lowagie.tools.concat_pdf, unsuccesfully.

I wrote a custom sitemap action to concatenate PDF's (using iText) and it 
worked fine.  So I see no reason that you shouldn't be able to do some thing 
similar in an XSP.

You might want to write a small, standalone test Java program that 
concatenates your PDF's from the command line (rather than inside 
Cocoon/XSPs) just to make sure that you are using iText API calls correctly.  
iText is quite powerful and can do some wonderful things with PDF files, but 
the API is not very well documented nor is it very intuitive.

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org