SaaS CMS has officially launched! Learn more now.

Trim PDF size before loading to EpiServer


We are running into an issue where admins have loaded huge PDF files to Epi. When try to load it takes forever in the browser. Wondering if there is any package tool which I can use during the load process to trim the size of the PDF.

Aug 25, 2020 16:12

This could go combined with these two links - 

First you create an Initialization method which gets triggered whenever you add a media file in Epi. As soon as you add it calls out the method to compress. The example - is obviously doing it for Media files as Images. But you can call out an additional piece of code that shirnks PDFs to be specific. 

Just like this one -,document%20to%20make%20it%20smaller.

Give it a try

Aug 28, 2020 9:33

This is definitely great information. My client is fine with a paid service that exposes API to do compression. Wondering if there are any recomonded ones with nuget etc or I pick anything online.

Sep 02, 2020 14:13
- Sep 02, 2020 14:26
I actually looked back on EpiNuget packages but couldn't find any such. Not sure if I missed any out of my radar. Just let me know if you find any such package available.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.