Adding PDF library and saving PDF