# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
#pyuic5 -x main.ui -o layout.py

from PyQt5 import QtCore, QtGui, QtWidgets
import functions

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(611, 439)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(10, 10, 131, 27))
        self.pushButton.setObjectName("pushButton")
        self.lblPDF = QtWidgets.QLabel(self.centralwidget)
        self.lblPDF.setGeometry(QtCore.QRect(160, 10, 241, 31))
        self.lblPDF.setAutoFillBackground(True)
        self.lblPDF.setText("")
        self.lblPDF.setObjectName("lblPDF")
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(60, 50, 151, 17))
        self.label_2.setObjectName("label_2")
        self.label_3 = QtWidgets.QLabel(self.centralwidget)
        self.label_3.setGeometry(QtCore.QRect(10, 80, 91, 17))
        self.label_3.setObjectName("label_3")
        self.lblPages = QtWidgets.QLabel(self.centralwidget)
        self.lblPages.setGeometry(QtCore.QRect(440, 10, 121, 31))
        self.lblPages.setAutoFillBackground(True)
        self.lblPages.setText("")
        self.lblPages.setObjectName("lblPages")
        self.textBrowser = QtWidgets.QTextBrowser(self.centralwidget)
        self.textBrowser.setGeometry(QtCore.QRect(110, 80, 181, 21))
        self.textBrowser.setObjectName("textBrowser")
        self.pushButton_2 = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton_2.setGeometry(QtCore.QRect(80, 110, 99, 27))
        self.pushButton_2.setObjectName("pushButton_2")
        self.pushButton_2.clicked.connect(self.onclickExtract)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 611, 25))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "PDF ToolKit"))
        self.pushButton.setText(_translate("MainWindow", "Load a PDF"))
        self.label_2.setText(_translate("MainWindow", "Extract Text from PDF"))
        self.label_3.setText(_translate("MainWindow", "Enter Pages"))
        self.pushButton_2.setText(_translate("MainWindow", "Extract"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec_())

