怎么通过jssdk旋转pdf

阅读次数 6

怎么通过jssdk旋转pdf

1 Answers

搞定,下面的核心代码

this._wps = WebOfficeSDK.config({
	url : wpsUrl.toString(),
	mount : this.getElementByXid("wpsDiv"),
});
const wps =this._model._wps;
await wps.ready();
const app = wps.Application;
await app.ActivePDF.RotatePage();