Skip to main content
Participant
Sep 29, 2025 6:20 AM UTC
Question

Heres a scripting problem, I'm trying to overcome

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
    Sep 29, 2025 12:08 PM UTC

    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.

    Translate
    www.frameexpert.com
    FrameMaker-dk
    Community Expert
    Community Expert
    Sep 29, 2025 9:19 AM UTC

    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? 

    Translate
    Bjørn Smalbro - FrameMaker.dk