I ran the file through the command `pdfinfo` and it reports that the pages are rotate by 270 degrees. Mayan is adding a 90 degrees rotation transformation to compensate. However when I view the PDF with xpdf and evince or extract the PDF pages by hand using pdftoppm or ghoscript, they are not rotated, they come out straight (portrait). I tried the same with the PDF you included in issue 387 (https://gitlab.com/mayan-edms/mayan-edms/issues/387) which also reports a rotation of 270 degrees. With this document, viewed or extracted pages have indeed a rotation of 270 degrees and show in landscape format.
I'm uncertain if the PDF metadata reporting a 270 degrees rotation in the latest PDF (AUGUST 30 2017 2017-01042.pdf) is incorrect or that the extraction and viewers tools are all compensating automatically. Both PDF seem to be produced by the same equipment: Xerox WorkCentre 7845 but the first document (2016_Pumper_Test_Records.pdf) appears to be single pages that were later merged using a PDF merge tool. More tests using different tools is required to determine which situation is the correct one: 1) the rotation information is wrong, 2) the tools all compensate for rotation when extracting images or viewing and it is not necessary for Mayan to add a transformation, 3) the merge tool used to compose the first PDF document scrambled the rotation metadata or rotated the pages without updating the rotation metadata. On Friday, September 1, 2017 at 8:21:55 AM UTC-4, David Kornahrens wrote: > > Roberto, > Here is one of the documents. I've noticed they are rotating coming from > the source (we use printer to IMAP email to pick up the files). > > Thanks, > David > > On Tuesday, August 29, 2017 at 12:05:32 PM UTC-4, David Kornahrens wrote: >> >> We are having documents self-rotate themselves 90 degrees and I'm not >> sure why. I'm having to manually remove the transformations from each >> document and then resubmit them for OCR. >> >> Any ideas? >> > -- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
