Our approach is basically model-controller-view. We
have one model which we wrote in java and we can
create two different views, one in OpenOffice and one
in In Design. For performance we have tried a mixed
macro and java solution, but I am not sure with all
the marshalling and unmarshalling that it really
helped much for performance.

I tried the cursor idea, you actually gave me the idea
(thanks). It is normally faster, but, I had a couple
of problems with it.

a) it doesn't work with tables in frames. If you take
the first xText and the last xText then it only
measures from the first to the next to last cell.

b) it doesn't seem to work with thick borders

c) sometimes the measurements were not pixel, perfect,
I think it had to do with the fact that the last line
was not measured or something like that.

OpenOffice is great, and I reckon its strength is it
api. I would of course love to see more features that
can let user render high quality document on the fly.
For example this LayoutHeight property.

I have a question are OpenOffice pdf's "Pdf-x" format.
I believe that is what print ready pdfs with all the
correct image information are called.

regards

--- Fernand Vanrie <[EMAIL PROTECTED]> wrote:

> Kent Gibson schreef:
> > We are using OpenOffice as a preview for Adobe In
> > Design. We have a model and we first render it
> using
> > OpenOffice as a preview and then later we can
> model it
> > in In Design.
> >
> >   
> Can you tell more about your aproch ?
> > The results are getting pretty good (which really
> > shows off the ability of OO). But we are having
> some
> > peformance problems.
> >
> >   
> We had the same project for QUARk Express but we
> stoped this and now we 
> do the previeuw and the whole layout in OO. Then
> making high resolution 
> PDF's ready for our printers.
> > One of our biggest problems right now is reliance
> on a
> > property called LayoutSize (which is new since
> 2.0.3).
> >
> > We use this property to find out how big a frame
> with
> > automatic height is after it has content.
> >
> >   
> I had similar problems, but resolved with putting
> the frame on the page, 
> filling it with te conttent and the using a
> textcursor to measuring its 
> exact height. I never trayed this "layoutsize" but 
> is upose our method 
> is a bit faster :-)
> 
> > The problem as tl
> >
>
(http://www.openoffice.org/issues/show_bug.cgi?id=63211)
> > explains "this value will only be usefull if the
> > document is already layouted." 
> >
> > Which means in real terms that I sometimes have to
> > sleep for 2-3 seconds (or more) so that I can find
> out
> > how big the frame really is.
> > s there anyway I can force the laying out of the
> > document. I have tried using the XRefreshable
> > interface and xTextDocument.reformat() and  but
> that
> > still does not seem to really do the trick.
> >
> > I guess that a page is really layed out when
> content
> > reaches the end of the page. But in order to avoid
> > automatic page breaks and other problems with text
> > flow, I use a really long page and when I am
> finished
> > set the page size to something sensible, which
> means
> > that the content never gets to the end of the
> page.
> >
> > Any help would be grand. Also if anyone has any
> tips
> > or tricks on how to avoid performance traps using
> the
> > api that would also be nice.
> >
> > thanks,
> >
> > kent
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> > http://mail.yahoo.com 
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >   
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to