Discussion:
[Mayan EDMS: 2423] PDF rotate option for documents
Victor Zele
2018-04-06 16:45:59 UTC
Permalink
Hi Roberto,

As a new feature request, would be nice to use pdftk opensource tool with
command line option to rotate any PDFs that come in sideways.
Right now I have to download the document version, run pdftk command like
below and upload the output PDF as a new version for parsing and OCR again.

# pdftk DOC-20180326-1045-0.pdf cat 1-endwest output output-rotated.pdf

Seems to keep resolution, etc. on the PDF and you can specify west rotation
for counter-clockwise or east for clockwise rotation, 1-end means all pages
which is usually the case.
--
**CONFIDENTIALITY
NOTICE:* *

*This transmission may contain information
which is Vimo, Inc. (DBA
Getinsured) confidential and/or legally
privileged. The information is intended
only for the use of the individual
or entity named on this transmission. If you
are not the intended
recipient, you are hereby notified that any disclosure,
copying, or
distribution of the contents of this transmission is strictly
prohibited.
If you have received this transmission in error, please immediately
notify
me by return e-mail and destroy all copies of the original message.*
--
---
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
2018-04-06 20:41:42 UTC
Permalink
The rotation issue since the last versions is actually caused by code that
was added to try to detect PDF orientation in some edge cases. Ssince there
are many unofficial and undocumented ways to rotate a PDF, it is not
working 100% of the time. That is why it is now disabled by default and
controlled via the DOCUMENTS_FIX_ORIENTATION setting.
https://gitlab.com/mayan-edms/mayan-edms/commit/b06918c333fb582d749ffd255019223fb08ecb92

Better to have good orientation detection for good PDF than try to detect
orientation in bad PDF and screw up detection for all PDFs.
Post by Victor Zele
Hi Roberto,
As a new feature request, would be nice to use pdftk opensource tool with
command line option to rotate any PDFs that come in sideways.
Right now I have to download the document version, run pdftk command like
below and upload the output PDF as a new version for parsing and OCR again.
# pdftk DOC-20180326-1045-0.pdf cat 1-endwest output output-rotated.pdf
Seems to keep resolution, etc. on the PDF and you can specify west
rotation for counter-clockwise or east for clockwise rotation, 1-end means
all pages which is usually the case.
--
---
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...