OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to merge two SXW files, throgh Java program

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
ach.sachin
Newbie
Newbie


Joined: 29 Aug 2006
Posts: 4

PostPosted: Tue Sep 19, 2006 9:42 pm    Post subject: How to merge two SXW files, throgh Java program Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Tue Sep 19, 2006 10:12 pm    Post subject: Re: How to merge two SXW files, throgh Java program Reply with quote

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
View user's profile Send private message
kapil.dhakad
Power User
Power User


Joined: 07 Jul 2005
Posts: 91
Location: INDIA

PostPosted: Thu Sep 21, 2006 7:13 am    Post subject: Merge more than one SXW using java Reply with quote

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
View user's profile Send private message Send e-mail
hol.sten
Super User
Super User


Joined: 14 Nov 2004
Posts: 3533
Location: Hamburg, Germany

PostPosted: Thu Sep 21, 2006 11:39 am    Post subject: Re: Merge more than one SXW using java Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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