Reseller(evget):technical question

Hi team,

How are you?

Below is the customer’s question:

Aspose.Total(For Java)

The main purpose of our using this Aspose product is used to convert the Aspose supported file format to HTML.But not edit these files.

The scene we use is as follows: The uploaded attachments are every kind of, we hope they can be previewed in the system, so choosing Aspose to transforms these attachements to HTML format ,and can preview in the Web.

We need to solve these problems in the process of use:

1.after the conversion of Html, which contains SVG, SVG is not compatible with the version of IE below IE9

, how to solve this problem ?

2.We need to read the converted HTML file in the Web program, and how to make the reader, and also support paging reading, does this can solve the problem of reading?

3.We also hope to customise the path of the generate dependency resources file,in our use, our upstream API only provides flow to the transforming client,we only support that it can transform to stream,and not support to transform to path. Like this :Document.save

(OutputStream,SaveOptions),WorkBook.save(OutputStream,SaveOptions),PresentationEx.save(OutputStream,SaveOptions).

Aspose.Words,this can be solved by using SaveOptions.setResourceFolder method, then in SaveOptions.setResourceUri method, we set ourselves actions path, this path contains &, but it was transformed to & in HTML automaticlly. Could you please tell me how to solve this?

Aspose.Slides, how to do with the paging processing? At present, we use:Iterator slidesIterator = slideDocument.getSlides().iterator(); then SlideEx.writeAsSvg(OutputStream),This also exists following problems which are not compatible with below IE9.

Presentation(corresponding PPT file) does not support to transform to html format, but PresentaionEx(corresponding PPTX file). The present resolve is treat these all fiels as PPTX process, namely, using PresentationEx to read the file.

Aspose.Cells in WorkBook.save() method, it can generate those resource files only when the first parameter contains the path, when the parameter is stream type, it can not generate those resource files. We use SaveOptions.setAttachedFilesUrlPrefix,SaveOptions.setAttachedFilesDirectory,SaveOptions.setCreateDirectory, but it does not work, so we can not control the sheet’s resource files. How to solve this?

We also have the API problem:

1 SaveOptions.setAttachedFilesUrlPrefix,SaveOptions.setAttachedFilesDirectory(this API is using when transform Excel to HTML, but it does not work)

2 SaveOptions.setResourceUri (this API is using when transorm Word to HTML, but the content should be Encoded by XML)

Does Aspose.Cells product support to export to excel more than 500 column? How to realize this ?

Could you please help to have a check? Thanks!

Best Regards,

Daisy
EVGET Software Solutions

Easy Victory to GET

Phone: +86 (23) 66090381

Email: business@evget.com

http://www.evget.com

Hi Ou,

We are working on these issues and will get back to you soon. Sorry for the inconvenience.

Best Regards,

Hi Muhammad,


Thank you!

Could you please help to confirm when these issues can be solved? Thanks!


Hi Ou,

  1. You can use the code from Avoid Saving Images in SVG Format to work around this.

  2. You can convert your documents to images or HTML and then use Image or HTML viewer if you want to use Aspose APIs only. An alternate solution is to use the viewer control offered by our sister company GroupDocs.

  3. For a uniform output, it is better to convert your documents to PDF and then use Aspose.Pdf for Java to convert to HTML. Using Aspose.Pdf for Java, you can convert all or specific pages to HTML and also save to stream instead of file.

As far as Excel files with more than 500 columns are concerned, it depends on the format you use. If you are using .xls files, then the limit is up to 256 columns and if you are using .xlsx files, then this limit is more than 10,000.

Please share your sample files and code if you see any issue in implementing this solution.

Best Regards,

Thank you very much for your reply.

I find that you answer my 2 questions, but the following questions have not answered,could you help mre to solve these problems? Thank you very much!

3.We also hope to customise the path of the generate dependency resources file,in our use, our upstream API only provides flow to the transforming client,we only support that it can transform to stream,and not support to transform to path. Like this :Document.save<o:p></o:p>

(OutputStream,SaveOptions),WorkBook.save(OutputStream,SaveOptions),PresentationEx.save(OutputStream,SaveOptions).<o:p></o:p>

Aspose.Words,this can be solved by using SaveOptions.setResourceFolder method, then in SaveOptions.setResourceUri method, we set ourselves actions path, this path contains &, but it was transformed to & in HTML automaticlly. Could you please tell me how to solve this?<o:p></o:p>

In Aspose.Slides, how to do with the paging processing? At present, we use:Iterator slidesIterator = slideDocument.getSlides().iterator(); then SlideEx.writeAsSvg(OutputStream),This also exists following problems which are not compatible with below IE9.<o:p></o:p>

Presentation(corresponding PPT file) does not support to transform to html format, but PresentaionEx(corresponding PPTX file). The present resolve is treat these all fiels as PPTX process, namely, using PresentationEx to read the file.<o:p></o:p>

In Aspose.Cellsin WorkBook.save() method, it can generate those resource files only when the first parameter contains the path, when the parameter is stream type, it can not generate those resource files. We use SaveOptions.setAttachedFilesUrlPrefix,SaveOptions.setAttachedFilesDirectory,SaveOptions.setCreateDirectory, but it does not work, so we can not control the sheet’s resource files. How to solve this?


We also have the API problem:<o:p></o:p>

1SaveOptions.setAttachedFilesUrlPrefix,SaveOptions.setAttachedFilesDirectory(this API is using when transform Excel to HTML, but it does not work)

2SaveOptions.setResourceUri (this API is using when transorm Word to HTML, but the content should be Encoded by XML)


Hi Ou,

Aspose.Words,this can be solved by using SaveOptions.setResourceFolder method, then in SaveOptions.setResourceUri method, we set ourselves actions path, this path contains &, but it was transformed to & in HTML automaticlly. Could you please tell me how to solve this?

and

2SaveOptions.setResourceUri (this API is using when transorm Word to HTML, but the content should be Encoded by XML)

There are two solutions.

1. You can implement IResourceSavingCallback and use ResourceSavingArgs to set URIs. Please check IResourceSavingCallback and ResourceSavingArgs in the Javadoc present in the docs folder of the installation directory for more details.

2. You can use HtmlFixedSaveOptions as you can see in the following code.

com.aspose.words.Document doc=new com.aspose.words.Document("Sample.docx");

HtmlFixedSaveOptions fixedoptions = new HtmlFixedSaveOptions();

fixedoptions.setExportEmbeddedCss(true);

fixedoptions.setExportEmbeddedFonts(true);

fixedoptions.setExportEmbeddedImages(true);

fixedoptions.setExportEmbeddedSvg(true);

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

ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();

doc.save(byteArrayOutputStream,fixedoptions);

In Aspose.Slides, how to do with the paging processing? At present, we use:Iterator slidesIterator = slideDocument.getSlides().iterator(); then SlideEx.writeAsSvg(OutputStream),This also exists following problems which are not compatible with below IE9.<o:p></o:p>

Presentation(corresponding PPT file) does not support to transform to html format, but PresentaionEx(corresponding PPTX file). The present resolve is treat these all fiels as PPTX process, namely, using PresentationEx to read the file.<o:p></o:p>

First of all, you should use latest version which exposes same classes for PPT/PPTX and same method to export to HTML.

Secondly, you can copy each slide in a new presentation as you can see at http://www.aspose.com/docs/display/slidesjava/Cloning+Slides+in+Presentation and then export that presentation to HTML instead of exporting each presentation to SVG.

In Aspose.Cellsin WorkBook.save() method, it can generate those resource files only when the first parameter contains the path, when the parameter is stream type, it can not generate those resource files. We use SaveOptions.setAttachedFilesUrlPrefix,SaveOptions.setAttachedFilesDirectory,SaveOptions.setCreateDirectory, but it does not work, so we can not control the sheet’s resource files. How to solve this?

Can you please share your complete code and input Excel file to reproduce the issue?

Best Regards,