Web Application and 3DPDF (C#)(HTML)(SolidworksAPI)

Hello Everyone,

I am currently writing a web application to configure models on our website and get a preview of the model using 3DPDF. I was wondering if anyone has gone this route? I just want to stay away from all the viewers that require plugins etc. It seems to work pretty good thus far. I am currently using this code

I am opening the file

saving the file using Export3dPDF

closing file

and then calling it using the html code below.

is this way efficient or is there an easier way to get a preview 3dPdf image with API?

SolidworksApi macros