[CS4] Removing notes from exported RTF


when export story rtf notes in story added end of exported rtf.  (it have been excellent if notes placed appear in story , made invisible).

 

to avoid having notes show in rtf use following:

 

sequence = cmdutils::beginabortablecmdseq();

sequence->setname(pmstring("rtf notes"));

 

utils<inoteutils> noteutils;

 

noteutils->clearallnotes(intextmodel);

 

exporter->exporttofile(idfile, indocument, texttarget, formatname, ksuppressui);

 

cmdutils::abortcommandsequence(sequence);

 

this works except story in ui flashes remove/undo-remove notes.

 

is there better way this?  there way can tell exporter not write notes?

 

thanks

-doug

i haven't looked @ notes in detail sdk side, scripting side appear describe them - hidden content straight within character strand, rather safely stored away in separate strand. side effects include strange findings of grep-search.

 

anyway, approach sounds similar first attempt on task. if want around flashing, either lock screen against redraws ( think sprites use such mechanism when start offscreen buffer ) or work on invisible copy, e.g. duplicate story scrap database before strip notes , export. latter approach sounds slower you'd using database faster protectionlevel faster, taking note-deleted notifications account.

 

dirk



More discussions in InDesign SDK


adobe

Comments

Popular posts from this blog

Help with codes to add 1 more shift register and add more to matrix LED

tcp client

Can't read sms using Thinker A7 communicate with Arduino