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]