device:35
     =ˆÖÕÔ‚pBÓ¾× n    =‹      ÕV]oÚ0}ï¯ðü°7r>V�OAD™¦iš&b5‰#Û!e¿~�A'P‡„Xûâ{íœØç\û^ÛŒºÓoãú4½ ñ—�ƒ~áÀ×F ˜Õ‡¦ãz ½!F82&kEáGªL'™$n‚6J„Æa†arå—cä
ù§ÌZäabNú)ã�HÎÈÜhÁx}ë “‰ÍS61wO¤i'”2³0êšÖñm—[icª5ô�çÙÆ¼�Ïì7Ã“ÍˆçãKrÇnËõÚ®ëCEÇ„C&Ùª$î½’–Ë:tt¶æZºŠø&BK‹EÚÁFf˜ø"Y ­ÂÊTÃ,¦éƒ³sŒhl:ø{¿;úaq`¢òoâS)>ïàÝÎðfÔ	0Ò„û@cî,æ“Õ%’‰¹àì(ø¾ß‹_Ç'*LÀu¨Df„LwP°÷¥†2ÖµZ[VA¤öQ„=>	ÆøvÒNƒþ¤
	+§Ø±û[ŽÉ˜*žÅC#ÕjŽŠÛÛt¦³›mmÄ*±ˆ&ÕÐAä	ÊÓ‡Té~�ìO$lvÛfŸà_Œêný]Í«×Ür[m÷¡#@[V>_�º=¹v*ª1Ùz¯PDFM„IÙ¾òs3®ö¹K­,ZiÒøg*YyèŸöŸÕãÕ.ò®ÛÍãzÎ‘'è‘W¥Žµ=Ç~\8™µ¡&·ùPÙ×w vÕjøã¿”ƒtÂFä|iË?&•=‡€—¥¼¼òK\ÿø2€Í›É‡õ³Î‡ê=úæÓ`¤ò
       ?ˆÖÕÔ639Ó¾×     ?‹      Å•]sš@†ïû+¶{Ñ;9àçL‚tŒ˜Fã×(IÆv:™…]e#°È®AýõE1Õvâ4^4¹bYÞsxßæ¬ùÙ4�É°…nœ^ï®ºí&Â€‡RÀvìüAYÓ€V#ì+_ ¤iª¥%M$3pFà«0(ƒT	÷”FÅÖ's»g}B¦ÏÍ®ÈT\ÌjG”­�˜"K%9ez6$	…xéÜ{Ù*B	’EtÊ¦Q
Í—š'Dœ½�
O¤~w1@…1xÄó)™ÊjãDxóíê9 é°›�»È|ÁÞ˜é
ºÞú5>Ü[faŠ¸;‹Ûeb™ÊGÏ$à³¨Ž•ˆ±eòp†dâÕ1pODÜ€DsmÆ§‘@Õñ�vsð3Ó�ò·Õ–I�Ÿ°imÖû—ƒº�­>	™	äuM/Ó4°Õ%R¡PP>åŒž�sñ˜oN7´s�Í¤—ðXq¤�E<Žê‰@Æ$ËZÉøÉ±*—ÐÑ Þ0†�Q«ïØíQŽ„n[Ü}À—ÆÖ�$,RÈæ	ó”HÖ{¹µ/‘+ãË—[´Ïšð™¯°…P½ª<Ð2šG"�Žeü_¥³÷blÄSçzÕiªÛ‡)w÷Ê)4ŒÇg‡²µ»ÚÌ'Oƒ›Š®íBcëì’ãð¥-êÅjÁ0
ÅÒ«•2B§°”ªï‹å~°î=úß®íyÑ½©®›±^¹Í¦çC:|ª­¾_±]‡+ïº5?`9³äXŒ*–.ŠÆI,¥²þ¾XÔCTXŒúÌ vJSµìÌFmÑ™”Kµî:n5îw1–Iù€åÌ’ÿÿ·¼qÁ~J›°;?LÈÏ»_@î8R    6   Aˆl–Ü4ý('ÔD¨ õÝÀ;q¦”Å£�þe}èÖmöäÀQÈ ùÒ„q—žgÕ¿Ø ?÷     A#!/usr/bin/env python3

### This program is free software; you can redistribute it and/or modify
### it under the terms of the GNU General Public License as published by
### the Free Software Foundation; version 2 only
###
### This program is distributed in the hope that it will be useful,
### but WITHOUT ANY WARRANTY; without even the implied warranty of
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
### GNU General Public License for more details.
###
### You should have received a copy of the GNU General Public License
### along with this program; if not, write to the Free Software
### Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
### Copyright 2007-2010 Dag Wieers <dag@wieers.com>

from __future__ import print_function

from distutils.version import LooseVersion
import getopt
import glob
import os
import subprocess
import sys
import time

__version__ = '0.7'

doctypes = ('document', 'graphics', 'presentation', 'spreadsheet')

global convertor, office, ooproc, product
ooproc = None
uno = unohelper = None
exitcode = 0

class Office:
    def __init__(self, basepath, urepath, unopath, pyuno, binary, python, pythonhome):
        self.basepath = basepath
        self.urepath = urepath
        self.unopath = unopath
        self.pyuno = pyuno
        self.binary = binary
        self.python = python
        self.pythonhome = pythonhome

    def __str__(self):
        return self.basepath

    def __repr__(self):
        return self.basepath

### Implement a path normalizer in order to make unoconv work on MacOS X
### (on which 'program' is a symlink to 'MacOSX' which seems to break unoconv)
def realpath(*args):
    ''' Implement a combination of os.path.join(), os.path.abspath() and
        os.path.realpath() in order to normalize path constructions '''
    ret = ''
    for arg in args:
        ret = os.path.join(ret, arg)
    return os.path.realpath(os.path.abspath(ret))

### The first thing we ought to do is find a suitable Office installation
### with a compatible pyuno library that we can import.
###
### See: http://user.services.openoffice.org/en/forum/viewtopic.php?f=45&t=36370&p=166783

def find_offices():
    ret = []
    extrapaths = []

    ### Try using UNO_PATH first (in many incarnations, we'll see what sticks)
    if 'UNO_PATH' in os.environ:
        extrapaths += [ os.environ['UNO_PATH'],
                        os.path.dirname(os.environ['UNO_PATH']),
                        os.path.dirname(os.path.dirname(os.environ['UNO_PATH'])) ]

    else:

        if os.name in ( 'nt', 'os2' ):
            if 'PROGRAMFILES' in list(os.environ.keys()):
                extrapaths += glob.glob(os.en