2014-01-17 30 views
0

嗨我想检查PDFBOx中的以下情形: “图像旋转的角度不是90度的倍数”。 任何人都可以请帮忙在这个话题。 样品PDF的位置: https://drive.google.com/file/d/0BzaBYVk1XnP_UkJjMDRBc2owd0E/edit?usp=sharing如何确定图像使用PDFBOX旋转小于90度

+1

布尔mutipleof90 =(角%90 == 0); – slipperyseal

+0

检查页面内容流。你会发现'q 325.79257 -42.55899 30.90112 236.55064 164.64209 365.19037 cm/X1做Q'。将该转换矩阵分解为其平移,缩放,旋转和倾斜部分。看看旋转矩阵。 – mkl

+0

嗨,你能告诉如何为PDXObjectImage对象导出旋转角度吗? –

回答

0

一样狡猾说,我已冗长

//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 
} 

这是你如何处理这种情况

+0

你如何确定PDXObjectImage的角度? – Edi