Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 80307

Open an RTF document

$
0
0

After a RTF has been processed by EndNote it is opened in FM and the paragraphs are handled.

It turns out that I do not need to set special Open parameters to specify the filter RTF (which is requested when opening manually). This is the central part of my script:

openParams = GetOpenDefaultParams();  openReturnParams =  new PropVals();   newDoc = Open (fileName, openParams, openReturnParams);   pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;  // get first pgf in flow

All works fine - for me it's a mystery, but a welcome one!

See the whole test script and test-file at my DropBox.


Viewing all articles
Browse latest Browse all 80307

Trending Articles