Generate a PDF by External Library