Added Zacks code to save pdf.