added mac pdf creation