We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving Excel with images to PDF using Stream

Hi,

When Aspose.Cells saves a workbook with images to stream all images are saved to some filesystem directory.

1. Question: Which directory? Can it be specified?

2. Request: In case of working with stream it is strictly necessary do not use filesystem and to store images to memory.

Best regards, Evgeniy

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

konfetov:
1. Question: Which directory? Can it be specified?

Currently the directory to save the images is the directory from where you start / run the application (run you java command). We have added your request as an enhancement in our internal issue tracking system to specify the directory. We will look into the feasibility of this feature and get back to you. The issue id is: CELLSJAVA-15192.

konfetov:
2. Request: In case of working with stream it is strictly necessary do not use filesystem and to store images to memory.

As we only generate intermediate XML file while conversion from XLS2PDF (using Aspose.Cells), it will not be possible for us to save images into the same stream. Even if we save the image into memory as a bytearray, it will not be possible to pass it to the user/application that needs to use it.

Thank You & Best Regards,

Hi Nausherwan,

Thanks for your answers.

Regarding 2) it is really necessary to have some possibility to work without filesystem as our web-application does not have permissions to write anything to filesystem.

Please contact Aspose.Pdf team and introduce new methods to forward images in memory. For example, you can put them into special list or array of ExternalImage and Aspose.Pdf will read them from some object.

// new method in Aspose.Cells

Workbook.save (OutputStream outStream, FileFormatType format, List images);

// new method in Aspose.Pdf

Pdf.bindXML(InputStream inStream, List images);

where ExternalImage is

class ExternalImage {

String name;

byte[] bytes;

}

Best regards, Evgeniy

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the feedback.

We will look into your suggestions and get back to you soon.

Thank You & Best Regards,

The issues you have found earlier (filed as 15192) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.