Re-packaged "pdf.h" to include write flag macros

Re-packaged "pdf.h" to include write flag macros