I am trying to extract images stored in a PDF as a stream. Although I can do this easily, I cannot get accurate information about image rotation. I am looking for specific information such as MediaBox, Rotate and Landscape / Portrait mode.
When I extract the image, its alignment does not match what the end user sees with the PDF reader.
I binary compared two PDF files (when the image was rotated 90 in the first, and 270 was rotated in the same image), and I found a difference in the specific stream object. However, I cannot understand what stream information is.
Here are two documents that I'm talking about:
http://bit.ly/eQZGKJ
http://bit.ly/g43Whb
source
share