Posts

Showing posts from July, 2020

Word to PDF converter in python

Image
MS Word 2007 to pdf converter in python import wx import wx.xrc import sys import os import comtypes.client ########################################################################### ## Class MyFrame1 ########################################################################### wdFormatPDF = 17 class MyFrame1 ( wx.Frame ):         def __init__( self, parent ):         wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 500,300 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )                                 bSizer1 = wx.BoxSizer( wx.VERTICAL )                 self.m_panel1 = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )         self.m_panel1.SetBackgroundColour( wx.SystemSettings.GetColour( wx.SYS_COLOUR_ACTIVECAPTION ) )                 bSizer2 = wx.BoxSizer( wx.VERTICAL )                 bSizer4 = wx.BoxSizer( wx.VERTICAL )                 self.m_panel2 = wx.Panel( self.m_panel1