Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageCompression is not being exposed #2894

Closed
BeejeeDS opened this issue Sep 2, 2020 · 1 comment
Closed

ImageCompression is not being exposed #2894

BeejeeDS opened this issue Sep 2, 2020 · 1 comment

Comments

@BeejeeDS
Copy link

BeejeeDS commented Sep 2, 2020

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);

@HackbrettXXX
Copy link
Collaborator

You are right. Could you prepare a pull request where you add the "export" where it is missing (from a quick glance this is ImageCompression, ColorSpace, and ShadingPatterStop)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants