build script for pdf documentation