在Javascript for Adobe Acrobat DC中,我了解getPageRotation和setPageRotations,但该命令看起来需要特定的页面范围。我怎样才能将每个90度的页面旋转到270度?也就是说,将所有应该是横向的页面旋转到横向?谢谢。
这应该是你想要的PDF页面bei页面中的所有页面:
for (var i = 0;i < this.numPages; i++){
r = getPageRotation(i);
if (r == 90) setPageRotations(i,i,270);
}