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
In working with jsPDF as part of the Angular Framework I have come across a couple of common jsPDF features that do not currently work in Typescript due to the Types/index.d.ts not containing the full definition of the object.
This includes the jsPDF constructor and jsPDFOptions not taking the optional parameter of hotfixes?: string[],
and the definition of ImageProperties not containing the filetype property.
I can provide a PR to fix these issues if desired.
The main use-case for the hotfixes is to allow the use of pixel-scaling and other such hotfixes
The main use-case for the image properties extension is to allow ease of use when adding images with potentially unknown filetype to the PDF document since the filetype can then be inferred from the image properties.
Attached are my notes on the issue and the modifications that I have made to my local copy of the file in order to use these interfaces Notes.txt
The text was updated successfully, but these errors were encountered:
hotfixes was added in #3108 but not yet released.
The format parameter is indeed missing from the ImageProperties type (it's called format not filetype). A pull request would be appreciated, thanks.
In working with jsPDF as part of the Angular Framework I have come across a couple of common jsPDF features that do not currently work in Typescript due to the Types/index.d.ts not containing the full definition of the object.
This includes the jsPDF constructor and jsPDFOptions not taking the optional parameter of hotfixes?: string[],
and the definition of ImageProperties not containing the filetype property.
I can provide a PR to fix these issues if desired.
The main use-case for the hotfixes is to allow the use of pixel-scaling and other such hotfixes
The main use-case for the image properties extension is to allow ease of use when adding images with potentially unknown filetype to the PDF document since the filetype can then be inferred from the image properties.
Attached are my notes on the issue and the modifications that I have made to my local copy of the file in order to use these interfaces
Notes.txt
The text was updated successfully, but these errors were encountered: