Dear Team,
We have purchased Aspose.Pdf for Java Site OEM license with Enterprise Support.
We have following issue with current version of API. Could you please help us to resolve these issues?
ISSUE:
Require to set PDF proeprty link magnification to Inherit Zoom. Its not working with following changes.
Could you please help us the right solution or with code snippet examples.
CODE SNIPPET:
/**
* Update inherit zoom
*
* @param sourcePDFFilePath
*/
private static void updateInheritZoom(String sourcePDFFilePath) {
//TODO:
// document..DestinationType =
// Aspose.Pdf.Generator.DestinationType.FitPage
// Zoom factor
// Instantiate new Document object
// GoToAction action = new GoToAction(new XYZExplicitDestination(1, 0,
// 0, 0));
// document.setOpenAction(action);
// }
// instantiate
PdfPageEditor editor = new PdfPageEditor();
// bind the source PDF file
editor.bindPdf(sourcePDFFilePath);
// set zoom over PDF file, zoom level as 0
editor.setZoom(0);
// save the PDF file to temporary
editor.save(sourcePDFFilePath);
editor.close();
editor = null;
}
Could you please let us know the right solution with example code snippets.
Highly appreciate for your support and resolution.
Thanks & Regards,
Radha Krishna Garnepudi