Once a year the BP Group asks for a personalized yearbook where 1 page is dedicated to one student and it has 1 page different. This year it was a 232 page book (69 books) with the page to personalize on page 97.
To create a personalized book, you need to run the script “PersonalizedBooksFilePrepper.vbs.” This file is located at
MAIN\scripts\fixers\personalized_books
Before you can generate the book, the school needs to prepare
- The base book file. They should leave the page they want to personalize in the book with what should be there if no personalized PDF is to be inserted – the base Book.
- A directory of all the 1 page PDFs they would like to have inserted as a personalized page
- A data file, in text format, with the names of each personalized PDF to insert.
Update PersonalizedBooksFilePrepper.vbs
You will need to update the script for the following fields.
baseFile = "Y:\1 ToPrint - Location of the base file " destDir = "Y:\1 To Print - Location where the new personalized files should output to - usually something named "PRODUCTION" variableDataDir = "Location of all the 1 page PDFs to insert" numBooks = Number of books to personalized numPages = Number of pages in the book pageToReplace = Page # of which place to insert the Variable page from above to.
You can then run the script by running cscript PersonalizedBooksFilePrepper.vbs [data file.txt] which will read in all the 1 page PDFs and then output them for printing.
And that’s it!
