Add pdf preview generator script.