Replies: 18 comments 4 replies
-
What should be particular to Angular 11? |
Beta Was this translation helpful? Give feedback.
-
Just in angular how can we implement zip.js |
Beta Was this translation helpful? Give feedback.
-
Like in any other JavaScript/TypeScript project? |
Beta Was this translation helpful? Give feedback.
-
This is angular project with typescript, we need to encrypt the zip having pdf blob. Can we do this with zip.js? Ask- whenever user open that downloaded zip, it should ask for the password. |
Beta Was this translation helpful? Give feedback.
-
Yes, it is probably possible to implement this. What's blocking you? |
Beta Was this translation helpful? Give feedback.
-
is this code is fine for encryption and zip that pdf blob? blob we are getting from API |
Beta Was this translation helpful? Give feedback.
-
PFA - by running: and importing the libary as an ECMAScript module: using like this : useCompressionStream is giving error in code |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
https://github.com/gildas-lormeau/zip.js/blob/master/tests/all/test-crypto.js |
Beta Was this translation helpful? Give feedback.
-
This is a code example that shows how to write a zip file with an AES password so I assume it's similar to what you want to do. |
Beta Was this translation helpful? Give feedback.
-
Will try this code hope this will work. @gildas-lormeau |
Beta Was this translation helpful? Give feedback.
-
You'll probably have to follow these instructions as well: #229 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
It looks like the ES version in your project is too old. Here is the fix of a similar issue in Angular CLI: |
Beta Was this translation helpful? Give feedback.
-
in which file we need to change tsconfig.json or package.json ? not getting |
Beta Was this translation helpful? Give feedback.
-
I'm sorry but I don't know because I don't use Angular. |
Beta Was this translation helpful? Give feedback.
-
is there any cdn available for zip.js ? @gildas-lormeau |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
How can we use zip.js in Angular11? I need to encrypt zip having pdf. Please suggest, after npm install how can we use zip.js in angular framework? We have blob for the PDF.
Beta Was this translation helpful? Give feedback.
All reactions