added pdf_priv.h, will move all obj deref to that place