Discussion:
[Mayan EDMS: 2606] Remove transformations from 1800 documents
(too old to reply)
RBS
2018-07-26 15:03:17 UTC
Permalink
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
RBS
2018-07-26 15:10:23 UTC
Permalink
BTW, We are using version 2.7.3 running under docker
Post by RBS
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Roberto Rosario
2018-08-08 21:33:25 UTC
Permalink
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.
Post by RBS
BTW, We are using version 2.7.3 running under docker
Post by RBS
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 mayan-edms+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...