Hidden passages are shown #88

Open
Sworddragon opened this Issue Sep 14, 2012 · 8 comments

Projects

None yet

2 participants

@Sworddragon

I'm using unoconv 0.5 and if I'm converting a LibreOffice document which contains hidden passages to a pdf document the passages are now shown.

@dagwieers
Owner

With "now" do you mean this is a regression ? Or was it always like this ?

Can you also please use the latest release v0.6 for testing ?

@Sworddragon

With "now" do you mean this is a regression ? Or was it always like this ?

Just ignore the now. It was the first time I was using hidden passages in LibreOffice. I have tested this now with unoconv 0.6 and the bug still exists. Oh, and I forget to say that I'm using LibreOffice 3.6.1 RC2.

@dagwieers
Owner

I think this is related to #40, can you test if the proposed fix there helps in your case ?

@Sworddragon

The patch doesn't help. But the LibreOffice help describes 3 forms of hiding something: http://help.libreoffice.org/Writer/Hiding_Text

In my example I have hidden a section. Maybe the patch doesn't handle this.

@dagwieers
Owner

I tested this with a small document with a hidden section, and I cannot reproduce this with the latest unoconv from the master branch and I tested it with all versions from LibreOffice I have on my system (v3.4.6, v3.5.7, v3.6.7.2, v4.0.6.2, v4.1.6.2, v4.2.8.2, v4.3.7.2, v4.4.4.3 and v5.0.0.2).

Can you try again with the latest unoconv from the master branch ?

@dagwieers dagwieers added this to the Release 0.7 milestone Jul 5, 2015
@Sworddragon

It seems the current version in master doesn't find my LibreOffice 4.4.2.2 installation as I'm getting this:

sworddragon@ubuntu:~/tmp$ unoconv-master/unoconv -o test.pdf test.odt
unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib/libreoffice
ERROR: No module named uno

unoconv: Cannot find a suitable office installation on your system.
ERROR: Please locate your office installation and send your feedback to:
http://github.com/dagwieers/unoconv/issues

@dagwieers
Owner

Please try running it as:

# /opt/libreoffice4.4/program/python unoconv-master/unoconv -o test.pdf test.odt

If the above path is the location of your installation, this way you are automatically using the correct python, and it will use the correct path for finding UNO etc.

@dagwieers dagwieers modified the milestone: Release 0.7, Release 0.8 Jul 8, 2015
@Sworddragon

Using "python3 unoconv-master/unoconv -o test.pdf test.odt" worked too (on my system Python 2 and Python 3 are installed and Ubuntu defaults to Python 2 then with calling python). But while LibreOffice Writer 4.4.2.2 is successfully hiding the sections the PDF document isn't after running the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment