Hi Henri,

When I use my code I Obtain the following results. You can see this by the
file attached where the teste.html is the original document.
http://www.nabble.com/user-files/260/teste.html teste.html 
http://www.nabble.com/user-files/261/teste.rtf teste.rtf 
http://www.nabble.com/user-files/262/teste.pdf teste.pdf 
http://www.nabble.com/user-files/263/teste.doc teste.doc 

Why the files teste.rtf, teste.doc and teste.pdf loose the text format when
I compare them with the original file?



Henri Sivonen wrote:
> 
> On Aug 10, 2006, at 15:58, aloizio wrote:
> 
>> Yes is this I need. But as I am newer in OpenOffice API I don't  
>> understand
>> the parameter to convert a HTML file. What is Template in this  
>> context?
> 
> It is a blank OpenOffice Writer document which contains the desired  
> style definitions.
> 
>> My problem is I have a HTML file as input and I need as output the  
>> same file
>> in different formats Word, RFT and PDF.
> 
> Yeah, the code does that.
> 
>> In your method public synchronized void convertTextWithInsert(File  
>> template,
>> File htmlDoc, File target) has three parameter. In my case, I think  
>> that two
>> parameter is sufficient, isn't ?
> 
> The code assumes the template, so you need to provide a blank Writer  
> file.
> 
> -- 
> Henri Sivonen
> [EMAIL PROTECTED]
> http://hsivonen.iki.fi/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Convert-HTML-file-to-WORD%2C-PDF-and-RTF-tf2081116.html#a5748919
Sent from the openoffice - api dev forum at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to