-
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
How to convert an encoded text file into a pdf one #262
Comments
The documentation has a link to this website: According to that list you should be using:
Does that work ? |
Nope. For those who might be interesting as a workaround I use iconv to |
Sorry, I got it all wrong, we should have been using the import filters instead as we are importing a CP-1251 document. So:
Could you try that instead ? |
In this case I get the following error Warning: Option cannot be parsed, ignoring. |
Alright, you found another issue that I just fixed bd0f756 Can you try this instead:
(Or get the fix from the commit above. Sorry for that...) |
unoconv -f pdf -i FilterOptions=34 rus.txt Unfortunately, it did not work either. On 26 June 2015 at 23:08, Dag Wieers notifications@github.com wrote:
Yours sincerely, |
I have been investigating this issue today and apparently the import I always assumed it was the case, but even my own documentation clearly states these are spreadsheet import options: https://github.com/dagwieers/unoconv/blob/master/doc/filters.adoc Sorry for wasting your time. |
kind man |
I have been trying to convert a cp1251 text file into pdf using unoconv and I am quite suripised that I have not been able to do that in an almost an hour. It seems that my encoding parameter is just ignored. This is what I have tried:
unoconv -f pdf --export FilterOptions=cp1251 rus.txt
unoconv -f pdf --export FilterOptions=cp-1251 rus.txt
unoconv -f pdf --export FilterOptions=Windows1251 rus.txt
unoconv -f pdf --export FilterOptions=Windows-1251 rus.txt
unoconv -f pdf --export 'Character Set'='cp1251' rus.txt
unoconv -f pdf --export 'Character Set'='cp-1251' rus.txt
unoconv -f pdf --export 'Character Set'='Windows1251' rus.txt
unoconv -f pdf --export 'Character Set'='Windows-1251' rus.txt
unoconv -f pdf --export 'Character Set'='Windows-1251 (Cyrillic)' rus.txt
I am pretty sure the export params are just ignored because if I try something like FilterOptions=whatever I get no warning or error. My unoconv installation:
unoconv 0.6
Written by Dag Wieers dag@wieers.com
Homepage at http://dag.wieers.com/home-made/unoconv/
platform posix/linux
python 3.3.2 (default, Mar 21 2015, 19:05:23)
[GCC 4.8.2]
LibreOffice 4.3
The text was updated successfully, but these errors were encountered: