The PdfDocCommon Class PdfDocCommon is an abstract class which is inherited by PdfReader and PdfWriter Where identified in the API, you can use any of the derived class.