[Mayan EDMS: 2606] Remove transformations from 1800 documents

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

[Mayan EDMS: 2606] Remove transformations from 1800 documents

RBS-2
Just recently started using Mayan and we had a user upload around 1800 documents.  Almost all of these documents had a transformation of {"degrees": 180} added and should not have.  How can I easily remove the transformations from all documents in the system?  Thanks!

--

---
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: 2607] Re: Remove transformations from 1800 documents

RBS-2

BTW, We are using version 2.7.3 running under docker



On Thursday, July 26, 2018 at 10:03:17 AM UTC-5, RBS wrote:
Just recently started using Mayan and we had a user upload around 1800 documents.  Almost all of these documents had a transformation of {"degrees": 180} added and should not have.  How can I easily remove the transformations from all documents in the system?  Thanks!

--

---
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: 2626] Re: Remove transformations from 1800 documents

rosarior
Administrator
This was most likely caused by the automatic orientation detection. This feature now defaults to disable since PDF are not always compliant. In 3.0 it is possible to select all the document in a page (40) and delete the transformations. A entry can be added to the "Tools" menu to clear all transformation in the system. In the meantime the only solution would be to launch a Python shell inside the Docker instance using:

docker exec -ti <docker container name> /bin/bash

The launcher a Python shell connected to Mayan.

/usr/local/python shell

execute the following:

from documents.models import Document
from converter.models import Transformation

[Transformation.objects.get_for_model(document).delete() for document in Document.objects.all()]

I'll push the option of adding an entry to the tools menu to clear all transformation in the queue for next version.

On Thursday, July 26, 2018 at 11:10:23 AM UTC-4, RBS wrote:

BTW, We are using version 2.7.3 running under docker



On Thursday, July 26, 2018 at 10:03:17 AM UTC-5, RBS wrote:
Just recently started using Mayan and we had a user upload around 1800 documents.  Almost all of these documents had a transformation of {"degrees": 180} added and should not have.  How can I easily remove the transformations from all documents in the system?  Thanks!

--

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