I don't think we would be able to compress the pdf by standard functionality however there is a process mentioned in the below link to create a zip file.
thanks - i meant to reduce the file size for pdf not compress but ability to reduce a pdf file size using js. before a file gets to salesforce i want the capability to reduce the size before it get's to salesforce
WPS Compress PDF Online supports 3 compression ratios (HD, Recommended, Smallest). You can choose one ratio based on your requirements to compress your file while maintaining high quality.
WPS Compress PDF Online (https://pdf.wps.com/compress-pdf-online/?utm_source=organicbl) supports 3 compression ratios (HD, Recommended, Smallest). You can choose one ratio based on your requirements to compress your file while maintaining high quality.
I don't think we would be able to compress the pdf by standard functionality however there is a process mentioned in the below link to create a zip file.
> https://salesforcescool.blogspot.com/2018/11/create-zip-of-salesforce-attachment.html
Let me know if it helps you and close your query by marking it as the best answer so that it can help others in the future.
Thanks.