Added full PDF writing for print