Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue May 19, 2020 9:34 pm

Hello .. Good night!
I am applying the removal of blank pages from pdf files to reduce and optimize them.
However, after removing the pages, the new file created is larger than the previous one.
I'm using a blank page removal code available here:
https://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Document-Operation/How-to-delete-the-blank-page-within-PDF-file-in-C.html
What could be happening?
Thanks in advance for your attention!

gafforelli
 
Posts: 37
Joined: Sat Sep 15, 2018 6:38 pm

Wed May 20, 2020 3:27 am

Hi,

Thanks for your inquiry.
Before saving, you could add "pdfDocument.FileInfo.IncrementalUpdate = false;" to prevent increasing file size. If there is any question, please provide your input files for further investigation. Meanwhile, kindly note that our Spire.PDF also supports compressing PDF documents like the tutorial (How to Compress PDF Document in C#, VB.NET).

Sincerely,
Sara
E-iceblue support team
User avatar

Sara.Yang
 
Posts: 33
Joined: Wed May 06, 2020 1:05 am

Wed May 20, 2020 6:48 pm

Hi Sara,

Perfect!
Tks!

gafforelli
 
Posts: 37
Joined: Sat Sep 15, 2018 6:38 pm

Thu May 21, 2020 1:08 am

Hi,

Thanks for your feedback.
If you encounter any issue related to our products in the future, please feel free to contact us. Wish you all the best!

Sincerely,
Sara
E-iceblue support team
User avatar

Sara.Yang
 
Posts: 33
Joined: Wed May 06, 2020 1:05 am

Return to Spire.PDF