I want to use the addImage method but this is not possible because ImageCompression is not being exposed in the typings. I am using version 2.1.0 The only workaround is using any to fool ts. pdf.addImage(contentDataUrl, 'JPEG', margin, margin, width , height, null, ("NONE") as any);