Split build.html for pdf preparation