+ Start a Discussion

compress pdf files in salesforce

I want to compress any pdf file( big or small) and display in browser. pdf file that has been requested through api.
ANUTEJANUTEJ (Salesforce Developers) 
Hi there,

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