You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm using jsPDF version 2.1.1. When I try to reduce the size of pdf file by using ImageCompression, but the text editor returns a problem No overload matches this call. Overload 1 of 3, '(imageData: string | HTMLImageElement | HTMLCanvasElement | Uint8Array, format: string, x: number, y: number, w: number, h: number, alias?: string, compression?: ImageCompression, rotation?: number): jsPDF', gave the following error. Argument of type 'string' is not assignable to parameter of type 'ImageCompression'. Overload 2 of 3, '(imageData: string | HTMLImageElement | HTMLCanvasElement | Uint8Array, x: number, y: number, w: number, h: number, alias?: string, compression?: ImageCompression, rotation?: number): jsPDF', gave the following error. Argument of type 'number' is not assignable to parameter of type 'string'.
Hi, I'm using jsPDF version 2.1.1. When I try to reduce the size of pdf file by using
ImageCompression
, but the text editor returns a problemNo overload matches this call. Overload 1 of 3, '(imageData: string | HTMLImageElement | HTMLCanvasElement | Uint8Array, format: string, x: number, y: number, w: number, h: number, alias?: string, compression?: ImageCompression, rotation?: number): jsPDF', gave the following error. Argument of type 'string' is not assignable to parameter of type 'ImageCompression'. Overload 2 of 3, '(imageData: string | HTMLImageElement | HTMLCanvasElement | Uint8Array, x: number, y: number, w: number, h: number, alias?: string, compression?: ImageCompression, rotation?: number): jsPDF', gave the following error. Argument of type 'number' is not assignable to parameter of type 'string'.
Here is my code as an example:
Hope you guys can solve this problem for me! Thanks so much
The text was updated successfully, but these errors were encountered: