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

Free Support Forum - aspose.com

Converting documents with fast webview = true

Hi,


we use Aspose to convert different Documents (doc,xls,mpp,ppt etc.) to PDF.
The PDFs should have fast webview enabled.
I don’t find any solution in your documentation.

Can you help me please?

Best regards


Hi Isabella,


Thank you for contacting support. There is no direct way to enable fast web view while converting documents to PDFs. Aspose.Pdf API has support to set fast web view option on PDF files. You may consider using the following code snippet to set fast web view of the PDF file.

[Java]
<span style=“color: rgb(0, 128, 0); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre; background-color: rgb(255, 255, 255);”>// load a PDF document
<span style=“background-color: rgb(255, 255, 255); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”>Document doc = <span class=“kwrd” style=“font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”>new<span style=“background-color: rgb(255, 255, 255); font-family: “Courier New”, Consolas, Courier, monospace; font-size: small; white-space: pre;”> Document(“c:/pdftest/compare-shipper-label-200ml.pdf”);
// linearize PDF file for fast web view
doc.optimize();
// save the resultant PDF file
doc.save(“c:/pdftest/compare-shipper-label-200ml_FastWeb.pdf”);