Skip to main content
Participant
September 29, 2025
Question

Heres a scripting problem, I'm trying to overcome

  • September 29, 2025
  • 2 replies
  • 86 views

I want to update the master pages of all docs in a book using a jsx script but im not sure how to do it.

I have a template.fm file which contains the desired master page format . This format has to applied to all the docs in the book file.

Can someone help with any pointers so that the necessary script can be completed??

THANKS IN ADVANCE!!

    2 replies

    frameexpert
    Community Expert
    Community Expert
    September 29, 2025

    You want something like this:

    doc.SimpleImportFormats (template, Constants.FF_UFF_PAGE);
    

    where doc is your target Doc variable and template and template is your source Doc variable.

    www.frameexpert.com
    FrameMaker-dk
    Community Expert
    Community Expert
    September 29, 2025

    Is it not possible to just import the master pages from the template to the book?

    1 Select all files in the book

    2 File->import formats-> select Page Layouts only ->Import from template file

    ... are there reasons why this procedure will not work for you? 

    Bjørn Smalbro - FrameMaker.dk