Fixing some failed uses of preview or view document API.
Fixing conversion command execution on files with special characters.
feature #3817 : Adding some tests to validate the commande line.
Adding more integration tests because special chars are problematic under linux.
Merge branch 'feature-3817'