Add more options for PDF

Fix #281, #280, #258