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.

Thu Jun 24, 2021 11:04 pm

Hello
i try to save page to each file. and save method increase size in almost two times.

using (PdfDocument PDF = new PdfDocument(File.ReadAllBytes(@"D:\SBC.pdf")))
{
for (int i = 0; i <= PDF.Pages.Count - 1; i++)
PDF.SaveToFile(@"D:\" + i + ".pdf", i, i, Spire.Pdf.FileFormat.PDF);
}

also i have another example of file when original size is 10M and file has 74 pages.
After split it, total size of files is 300MB.

for privacy i sent this example for your email [email protected]

sserra
 
Posts: 76
Joined: Tue Jun 13, 2017 4:03 pm

Fri Jun 25, 2021 7:01 am

Hello,

Thank you for your inquiry.
I tested your case and found that the total file size after splitting is much larger than the source file. I have submitted this issue with the ticket number SPIREPDF-4415 to our Dev team. They will investigate if the file size could be optimized. Once there is any progress, I will inform you. Sorry for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Fri Aug 20, 2021 11:36 am

Hello,

Thank you for your patience.
Glad to inform you that we have just released Spire.Office (Hot Fix) Version: 6.8.2 which solves the problem you posted. Please download it from the following links.
Website link:
https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link:
https://www.nuget.org/packages/Spire.Office/6.8.2
https://www.nuget.org/packages/Spire.Of ... Core/6.8.2

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Fri Sep 03, 2021 10:16 am

Hello,

Hope you are doing well!
Have you tried the new version of Spire.Office? Is the issue resolved now? Any feedback will be greatly appreciated.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDF