added missing code from pdf methods