Highlighted

Batch editing and saving Fm files.

New Here ,
Mar 14, 2018

Copy link to clipboard

Copied

Hi, I am using FrameMaker v12. I have about 40 odd documents related to a single project which I need to update just for three things: Version Number, Date, and Copyright Year. The vesion and date are treated as variables, the copyright year isn't. After editing these standard values across all 40 documents, I need to save all of them as PDFs. Is there any way I can automate this process? I am aware of extendscript and believe this can very well be achieved using that tool.

TOPICS
Scripting

Views

259

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Batch editing and saving Fm files.

New Here ,
Mar 14, 2018

Copy link to clipboard

Copied

Hi, I am using FrameMaker v12. I have about 40 odd documents related to a single project which I need to update just for three things: Version Number, Date, and Copyright Year. The vesion and date are treated as variables, the copyright year isn't. After editing these standard values across all 40 documents, I need to save all of them as PDFs. Is there any way I can automate this process? I am aware of extendscript and believe this can very well be achieved using that tool.

TOPICS
Scripting

Views

260

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 14, 2018 0
Enthusiast ,
Mar 14, 2018

Copy link to clipboard

Copied

Even easier than scripting is to add all of the files to a FrameMaker book. Make the required changes to the variables in the first document, then import the variable definitions from that file into the book. This will make the variables match across all files in the book.

Of course with a script you can be more precise about what you update, but even then a book can be a good way to manage the files. I do this for most of my FrameMaker development projects even if I never intend to publish any of the content from the book.

Ian

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
New Here ,
Mar 14, 2018

Copy link to clipboard

Copied

Thanks for the prompt response Ian. That's an awesome suggestion I'd say. So for all 40 documents, there is a book file that is a consolidation of multiple files and each book has a title file which has the info I need to change. So, as per what you are saying, I create a book, I add all 40 title files (from 40 books), make the change in the first file and update the variables for all files.

The only part you missed in your solution was about how do I save these 40-odd documents (book files) to PDF without actually opening them.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Enthusiast ,
Mar 14, 2018

Copy link to clipboard

Copied

Yes it's also very easy.

  1. Select the book file.
  2. Select File > Save As PDF.
  3. Select a suitable location for the PDF files
  4. In the PDF setup dialog select the checkbox "Generate Separate PDF Document for Each Selected File".
  5. You will get a PDF file for each book component.

Ian

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 14, 2018 0
Contributor ,
Aug 19, 2020

Copy link to clipboard

Copied

Hi, I have a similar question with the difference that for each of my books (bookmap in my case) I need to specifiy a setting and a ditaval file in the Publish panel. Can it be done as well using the book solution you suggest? 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Aug 19, 2020 0