Fix to make the Graphics.create() method (calls a copy constructor) work. Extracted stuff into a PDFContext class which gets passed to each copy of PDFDocumentGraphics2D, so the state is uniform over all copies.