質問

I am using Aspose Slide to generate PPT (2003) in Struts 2 Web Project, As it is greedy in RAM, we used Threads to do it in asynchronous mode, using FIFO Stack, to run threads a after one, it works fine, but regarding to the number of users, generating a PPT could consume long time, so I am thinking to an issue to that but I am not sure, the question is:

Could I use Applet to run the PPT generation in client side? does it a good practice for that?

Thanks

役に立ちましたか?

解決

You certainly can generate the presentations on the client side, and for the very reason you mentioned, time consuming processes should always be done on the client if at all possible.

You may want to consider using javascript on the client to generate the file instead of an applet though, as an applet will require the user to have the java plugin installed on their system, and you would need a security certificate to sign the applet.

Javascript on the other hand would not require any special plugins, and would not require a security certificate, since you can generate the file data and dynamically create a link using a data URI for the user to download/launch the presentation

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top