build new main.pdf