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

Soffice - Export html to pdf

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting
View previous topic :: View next topic  
Author Message
malharipawar
Newbie
Newbie


Joined: 23 Feb 2010
Posts: 4

PostPosted: Tue Mar 09, 2010 2:54 am    Post subject: Soffice - Export html to pdf Reply with quote

Hi All,

I'm using the JODConverter to export a HTML content to a PDF file using soffice to run at port 8100 on a Linux machine.

Most of the times process works seamlessly, but on few occasions the exported PDF doesn't contain all the pages of HTML file. eg. only 50 pages are exported instead of 89 pages. The exported page count changes when process is performed again for the same content.

i checked out few threads in the forum earlier where the Thread.sleep() function is called in between to buy some time for the conversion process before disconnecting.

Making the Thread modification in the code still doesn't have much effect on the process, still the file is not exported fully.

Can someone please guide me through this.
Any kind of help would be priceless.

Thanks
Malhari
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


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

PostPosted: Tue Mar 09, 2010 10:39 am    Post subject: Re: Soffice - Export html to pdf Reply with quote

malharipawar wrote:
i checked out few threads in the forum earlier where the Thread.sleep() function is called in between to buy some time for the conversion process before disconnecting.

Increase the milliseconds in Thread.sleep(). That's all. 89 pages is really a lot. So a Thread.sleep() for 10 or 20 pages does not suffice.
Back to top
View user's profile Send private message
malharipawar
Newbie
Newbie


Joined: 23 Feb 2010
Posts: 4

PostPosted: Tue Mar 09, 2010 11:36 pm    Post subject: Reply with quote

Hi Hole.sten,

Have tried increasing the millisecs, but sometimes still the whole content doesn't get exported completely. Please advice.
Back to top
View user's profile Send private message
hol.sten
Super User
Super User


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

PostPosted: Sun Mar 14, 2010 3:35 am    Post subject: Reply with quote

malharipawar wrote:
Have tried increasing the millisecs, but sometimes still the whole content doesn't get exported completely.

To what time did you increase the millisecs? Which HTML pages do you try to load?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting 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