init pdf by chapter