-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unoconv includes deleted text when converting from doc to txt #40
Comments
Hi Vincent, If the export filter has filter options for this (through the GUI) then there must be a way to instruct unoconv to do the same using In the file docs/filters.txt we already describe all the export filter options of the PDF export filter (at least, all options that we found documented on the OpenOffice website at one point), we would need the same for the Text export filter. So in itself, unoconv already can do it, we simply don't know how ;-) |
Ok, I found a way to do it, but I need your help to test this. diff --git a/unoconv b/unoconv
index 972e962..dd43884 100755
--- a/unoconv
+++ b/unoconv
@@ -882,6 +882,11 @@ class Convertor:
info(2, "Selected office filter: %s" % outputfmt.filter)
info(2, "Used doctype: %s" % outputfmt.doctype)
+ ### Document properties phase
+ phase = "properties"
+ if hasattr(document, 'ShowChanges'):
+ document.ShowChanges = False
+
### Export phase
phase = "export"
Quite a small change, unclear yet how we would like to make this optional (together with a large set of other options one may want to set). |
I am sorry to have not answered yet. For some unknown reason, I didn't received a notification for your comment. I will add the patch in the next Debian package and ask for testing. |
I converted a heap of word docs to pdf using unoconv and found all output files were showing deleted text. Found this bug and applied the patch manually to fix the problem. It would be good to get his fix released. |
Hey! The patch is in Debian since July 2013 and nobody complained. It is now in a stable release too. I think you can merge it. |
@vincentbernat Hi. I also test it a bit - it seems, that it's works as expected. |
I guess we can add it as the default. And people who do want to old behaviour can write a plugin to do the opposite (once we have the plugin/extension system integrated in v0.8). |
Hi, when I was using the unoconv to convert from word to pdf, the changes(deleted text) is still included, is there any way to solve this problem?? |
Hi!
When a
.doc
file with recorded changes is converted to a.txt
, deleted text appears in the converted version. The same happens when using LibreOffice directly but a work around is to disable the "Show changes" option in LibreOffice menu. There is no such option with unoconv.(This bug was originally reported to Debian BTS as bug #624295)
The text was updated successfully, but these errors were encountered: