Hi I want to check the following scenario in PDFBOx: "Image is rotated over an angle that is not a multiple of 90 degrees". Can anybody please help in this topic. Sample PDF location: https://drive.google.com/file/d/0BzaBYVk1XnP_UkJjMDRBc2owd0E/edit?usp=sharing

有帮助吗?

解决方案

As Slippery said, i have made it lengthy

//set the angle of the image
double angle;
if(angle % 90 == 0){
//Perform operation when the angle is multiple of 90
}else{
//Perform operation when the angle is NOT multiple of 90
}

This is how you can handle this scenario

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top