Skip to main content
Known Participant
May 13, 2019 4:41 PM UTC
Question

Save FM Book as PDF: Set ElementBoundaryDisplay

I am working on a script to save multiple framemaker book files as PDFs.  The books successfully save to PDF, but the element boundaries are displayed as tags in the pdf.

I have tired both:

app.ActiveDoc.ElementBoundaryDisplay = 0

and

app.ActiveBook.ElementBoundaryDisplay = 0

while the book is open in Framemaker.  Neither work.

This is my PDF saving function:

function saveToPDF(fileObject, savePath) { 

    var saveParams, i;

    saveParams= GetSaveDefaultParams(); 

   

    i = GetPropIndex(saveParams, Constants.FS_FileType); 

    saveParams.propVal.ival = Constants.FV_SaveFmtPdf;

   

    var saveAsName = savePath; 

    var returnParamsp = new PropVals(); 

    fileObject.Save(saveAsName, saveParams, returnParamsp); 

} 

Any ideas on how to make sure element boundary display is turned off in an active book?

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

4everJang
Legend
May 13, 2019 4:45 PM UTC

You will have to cycle through the book components, set the element boundaries off, and save the document before retrying the save book to PDF.

I never ever have element boundaries showing in FrameMaker, as that messes up your display as well as the pagination. I use the Structure View to navigate and see where I am, not the boundaries or tags in the middle of the text.

Translate
Legend
May 14, 2019 1:42 PM UTC

I have the same question and have had it ever since the boundary display became "global." I cannot change the boundary display with ExtendScript or the FDK, where previously it worked seamlessly. None of the following commands do anything:

app.ActiveDoc.ElementBoundaryDisplay = 0;

app.ActiveDoc.ElementBoundaryDisplay = Constants.FV_ELEM_DISP_NONE;

app.ActiveDoc.ElementBoundaryDisplay = Constants.FV_ELEM_DISP_BRACKETS;

app.ActiveDoc.ElementBoundaryDisplay = Constants.FV_ELEM_DISP_TAGS;

Russ

Translate
4everJang
Legend
May 14, 2019 1:44 PM UTC

Have you tried executing the Fcode for the menu command ?

Translate