Control loading of External Resources in MS Excel Workbook while rendering to PDF

Possible Usage Scenarios

Your Excel file may contain external resources e.g. linked images or objects. When you convert your Excel file to PDF, Aspose.Cells retrieves these external resources and renders them to PDF. But sometimes, you do not want to load these external resources and more than that, you want to manipulate them. You can do this using WorkbookSettings.StreamProvider which implements the IStreamProvider interface.

Control loading of External Resources in MS Excel Workbook while rendering to PDF

The following sample code explains how to make use of WorkbookSettings.StreamProvider to control the loading of external resources and manipulate them. Please check the sample Excel file used inside the code and the output PDF generated by the code. The screenshot shows how the old external image in the sample Excel file was replaced with a new image in the output PDF.

todo:image_alt_text

Sample Code