Discussion:
[Mayan EDMS: 2045] Transformations Auto Rotate (bug)
David Kornahrens
2017-08-29 16:05:31 UTC
Permalink
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roberto Rosario
2017-08-30 08:55:14 UTC
Permalink
Can you provide a sample document (no confidential or private information)
to test and debug the issues?
Post by David Kornahrens
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Kornahrens
2017-08-31 13:11:57 UTC
Permalink
Roberto,
See attached screen shots.
Post by Roberto Rosario
Can you provide a sample document (no confidential or private information)
to test and debug the issues?
Post by David Kornahrens
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roberto Rosario
2017-08-31 21:15:45 UTC
Permalink
I need one of the actual PDF files to upload it locally and debug the
rotation detection. If these are produced by a specific equipment you can
scan a dummy test page (like the one Ubuntu of Windows produces to test a
printer) and attach it to a the reply.
Post by David Kornahrens
Roberto,
See attached screen shots.
Post by Roberto Rosario
Can you provide a sample document (no confidential or private
information) to test and debug the issues?
Post by David Kornahrens
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Kornahrens
2017-09-01 12:21:55 UTC
Permalink
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
Post by David Kornahrens
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roberto Rosario
2017-09-03 09:18:54 UTC
Permalink
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.
Post by David Kornahrens
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
Post by David Kornahrens
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
David Kornahrens
2017-09-23 20:32:13 UTC
Permalink
Thanks for the response. We are using the standard Xerox "email to" to
merge the PDF's. If we put 10 pages into the document feeder for "1"
document, it merges all of them into one PDF when sending to our email as
our source.

Thx,
DAvid
Post by Roberto Rosario
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.
Post by David Kornahrens
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
Post by David Kornahrens
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...