Hi,
I wonder if anyone can give me pointers how to do this?
Background - a document is created programmatically from a template and in the process text added / removed. As a result now end up with empty pages because of the way text is now flowing through the document. There is a need to remove the extra blank pages.
I have looked at content xml to see if anything obvious to identify the blank page and there isn't (which I suppose is understandable because the blanks pages are a symptom of the 'presentation' of the content)
I have looked through the api and there is nothing obvious there either.
One possibility comes to mind but I'm not experienced enough with the api's to know if it is a feasible approach or not :
identify number of pages in doc.
for each page in doc
use XpageCursor to jump to page
somehow extract the text range for each page (? create a text cursor for the page)
if text range is empty
store page number
for each stored page number (processed in reverse order)
remove the page from the document (?how)
Perhaps someone with more knowledge could comment on what I'm trying to do or point to some other part of the api which might do what I want to do.
Thanks
Malcolm
-- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.9 - Release Date: 12/05/2005
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
