Skip to main content
Known Participant
May 13, 2019
Question

Save FM Book as PDF: Set ElementBoundaryDisplay

  • May 13, 2019
  • 1 reply
  • 1840 views

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 has been closed for replies.

1 reply

4everJang
Legend
May 13, 2019

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.

Legend
May 14, 2019

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

4everJang
Legend
May 14, 2019

Have you tried executing the Fcode for the menu command ?