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.

Wed Feb 14, 2018 6:24 pm

Hi,

Is it possible to convert specific pages when calling doc.SaveToStream(FileFormat.SVG); (or HTML)? At the moment an array of streams are returned, which will leave all results in memory, and can take a fair amount of time to process. We'd like to call it with either a specified page/page range, or be able to have event handlers where we can manually deal with a page render completed, etc.

Thanks!

jmmm
 
Posts: 1
Joined: Wed Feb 14, 2018 12:47 pm

Thu Feb 15, 2018 2:44 am

Hello jmmm,

Thanks for your inquiry.
Sorry, now we don't have such method for saving a specified page/page range in memory with SVG/HTML fileformat.
We will consider adding the methods in the future. When they are supported, we will notify you.
On the current situation, there is a solution that can be considered, which is to split a pdf into multiple pdfs by page range, and then save respectively them to svg stream/ html stream.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Mon Feb 26, 2018 7:27 am

Hello jmmm,

Our dev team has achieved the features you want. New version is under testing phase now, we will notify you as soon as it is available.

Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Mar 07, 2018 10:17 am

Hello jmmm,

New version is available now. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:4.3.0.

Code: Select all
public Stream[] SaveToStream(int startIndex, int endIndex, FileFormat format);


Sincerely,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Fri Mar 09, 2018 8:12 am

Hello jmmm,

Have you tried new version?
Looking forward to your feedback.

Sincerely
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF