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

Free Support Forum - aspose.com

Set the default view level - Actual to Zoom to Page Level - Aspose JAVA PDF -10.6.1 version

Hello

I have upgraded to aspose java pdf 10.6.1 on the generated pdf, the display widht is set to Actual

how to set it Zoom to Page Level using aspose api

Regards

-Kalyan

Hi Kalyan,


Thanks for contacting support.

Please try using following code snippet to set zoom factor when viewing PDF document. As per your requirement, you can set zoom factor for PDF file.

[Java]

double zoom = 5;<o:p></o:p>

Document doc = new Document(“c:/pdftest/Farag.pdf”);<o:p></o:p>

com.aspose.pdf.GoToAction action = new com.aspose.pdf.GoToAction(1);<o:p></o:p>

action.setDestination(new com.aspose.pdf.XYZExplicitDestination(doc,
0, 0, 0, zoom));
<o:p></o:p>

doc.setOpenAction(action);<o:p></o:p>

doc.save("c:/pdftest/Zoomed_pdf.pdf");

Thanks it helped to set the zoom


How to set the zoom to Zoom to Page Level, Actual Size , Fit width for PDF

Appreciate your help

Regards
-Kalyan

It resolved after using
FitBExplicitDestination xyz=new com.aspose.pdf.FitBExplicitDestination(doc, 0);

Thanks for the help

Regards
-Kalyan

Hi Kalyan,


Thanks for the acknowledgement.

We are glad to hear that your requirement is accomplished. Please continue using our API and in the event of any further query, please feel free to contact.