Pregunta

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

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top