I am creating a bulk PDF which contains some set of PDF documents, in that some of the documents will be scanned documents. So if we scan reverse, they will appear in rotation of 90 or 270. I have make everything in it to look correct.
Can you please send me some sample code with example to check if the PDF is in rotation of 90 or 270 and rotate it to view corretly.
I tried to replicate your issue but unable to reproduce the problem at my end. However, to exactly replicate your issue at our end, we would appreciate it, if you create a sample application and post here to show us the issue. This will help us to regenerate the issue and reply back to you soon.
I tried to replicate your issue again with updated code but unable to reproduce the problem at my end because source is not available to create the same mergedDocumentStream. However, to exactly replicate your issue at our end, we would appreciate, if you create a sample application and post here to show us the issue. This will help us to regenerate the issue and reply back to you soon.
Moreover, you can split the pages using streams and check the pageWidth and pageHeight of each page individualy and rotate according to your requirement. Please see the following documentation link for your reference and check if it fits your need.
Hi Smita,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
As I understand your issue,
if the page is scanned reverse, then you are facing the problem in rotating it
because the height will be greater than width and page will not get rotated as
per your code. Well, I don’t think we can identify such a scenario because
logically we cannot know whether a page was scanned in reverse. If my
understanding is not right, please share some template PDF to show the issue,
we will check that and reply to you.