Fixed pdfwrite.c, resource "Pattern" writing

Fixed pdfwrite.c, resource "Pattern" writing, was a typo of "Shading"