| View previous topic :: View next topic |
| Author |
Message |
ach.sachin Newbie

Joined: 29 Aug 2006 Posts: 4
|
Posted: Tue Sep 19, 2006 9:42 pm Post subject: How to merge two SXW files, throgh Java program |
|
|
Hi to all,
Iam in big hurdle, and need solution ASAP , Iam using OpenOffice API, for converting SXW to PDF, as part of this activity, i have to merge two SXW files,
Plz let me know if u have any solution
Regards
Sachin Acharya _________________ ----------------
Regards
Sachin Acharya |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3531 Location: Hamburg, Germany
|
Posted: Tue Sep 19, 2006 10:12 pm Post subject: Re: How to merge two SXW files, throgh Java program |
|
|
| ach.sachin wrote: | | Iam using OpenOffice API |
Just for clarification: You're using Java?
| ach.sachin wrote: | | for converting SXW to PDF, as part of this activity, i have to merge two SXW files, |
There are two solutions:
1) Load the first document. Afterwards insert the second document. Third export the result as PDF. Downside: You often get a lot of trouble with your formatting of the inserted document.
2) Load the first document. Export it as a PDF. Load the second document. Export it as another PDF. Put the two exported PDF files into one PDF with for example iText from http://www.lowagie.com/iText/. Advantage: The formatting in each document will be preserved.
You'll find Java examples on how to load and insert documents in the OOo Developer's Guide: http://api.openoffice.org/docs/DevelopersGuide/DevelopersGuide.xhtml. More specific: http://api.openoffice.org/docs/DevelopersGuide/Text/Text.xhtml#1_2_Handling_Text_Document_Files.
Regards
hol.sten |
|
| Back to top |
|
 |
kapil.dhakad Power User


Joined: 07 Jul 2005 Posts: 91 Location: INDIA
|
Posted: Thu Sep 21, 2006 7:13 am Post subject: Merge more than one SXW using java |
|
|
Hi,
I also want to merge "A.sxw" and "B.sxw" to "C.sxw". I not want to go with iText approach, because it create PDF and it is readonly, since we can't edit it.
I tried merging of SXW files, but it merge text only. Is there any solution to merge more than one .SXW documents into a single document without affecting foramtting ? |
|
| Back to top |
|
 |
hol.sten Super User


Joined: 14 Nov 2004 Posts: 3531 Location: Hamburg, Germany
|
Posted: Thu Sep 21, 2006 11:39 am Post subject: Re: Merge more than one SXW using java |
|
|
| kapil.dhakad wrote: | I also want to merge "A.sxw" and "B.sxw" to "C.sxw". I not want to go with iText approach, because it create PDF and it is readonly, since we can't edit it.
I tried merging of SXW files, but it merge text only. Is there any solution to merge more than one .SXW documents into a single document without affecting foramtting ? |
None that I've heard of.
Regards
hol.sten |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|