[Mayan EDMS: 2423] PDF rotate option for documents

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 2423] PDF rotate option for documents

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.



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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

[Mayan EDMS: 2424] Re: PDF rotate option for documents

rosarior
Administrator
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.

On Friday, April 6, 2018 at 12:45:59 PM UTC-4, Victor Zele wrote:
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.