Added writing PDF examples