Quantcast
Channel: Adobe Community : All Content - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 888

Import MIF files -> pgf problem?

$
0
0

Hello friends,

 

once more I have a question for you all.

 

I am importing .mif files with this function:

 

function render_file(file_path){     var doc = doc_GLOBAL;     var importFile = File(file_path);     var importParams = getImportPrefs();     var importReturnParams = new PropVals();     if(doc.ObjectValid()){          if(renderIndex == 0){     // Checking, if it is the first import. If so, use mainflowindoc, to get position               filePgf = doc.NewSeriesObject(Constants.FO_Pgf, doc.MainFlowInDoc);               }         else{                     // if not first import, create the new pgf after the old one               filePgf = doc.NewSeriesObject(Constants.FO_Pgf, filePgf);               }          }     var textLoc = new TextLoc();     textLoc.obj = filePgf;     textLoc.offset = 0 ;     var res = doc.Import(textLoc, file_path, importParams, importReturnParams);     renderIndex++;
};

 

After importing the mif files one by one, I can see them in the doc, but between all the imported mif docs , there is one additional pgf i don't want to appear, and don't know why it appears.

 

asasd.png

The first imported mif file is in the green box, the second one in the blue box. In between of them, the yellow-red area, is the pgf (so i guess?) I don't want to have.

Am I doing something wrong with my pgf objects while importing?

 

Hope you can answer that question!
Thanks

Selim


Viewing all articles
Browse latest Browse all 888

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>