# Path: relo/core/interfaces.py
# class DocType(ReloPlugin):
#     """""
#     Implements different type of docs
#     """""
#     def load(self, path):
#         self.path = path
#         self.fobj = open(path, "r")
#         self.content = ""
#         for line in self.fobj:
#             self.content += line
#         self.fobj.close()
#         return self.content


import sys
import os
from relo.core.interfaces import DocType
from pdfminer.pdfparser import PDFDocument, PDFParser
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter, process_pdf
from pdfminer.pdfdevice import PDFDevice, TagExtractor
from pdfminer.converter import XMLConverter, HTMLConverter, TextConverter
from pdfminer.cmapdb import CMapDB
from pdfminer.layout import LAParams
from cStringIO import StringIO
#!/usr/bin/env python
# encoding: utf-8

dirname = os.path.dirname(os.path.abspath(__file__))
up_dir = os.path.dirname(dirname)
sys.path.append(up_dir)


#from pyPdf import PdfFileReader


# Path: relo/core/interfaces.py
# class DocType(ReloPlugin):
#     """""
#     Implements different type of docs
#     """""
#     def load(self, path):
#         self.path = path
#         self.fobj = open(path, "r")
#         self.content = ""
#         for line in self.fobj:
#             self.content += line
#         self.fobj.close()
#         return self.content


# Path: relo/core/doctype/pdf.py
import sys
import os
from relo.core.interfaces import DocType
from pdfminer.pdfparser import PDFDocument, PDFParser
from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter, process_pdf
from pdfminer.pdfdevice import PDFDevice, TagExtractor
from pdfminer.converter import XMLConverter, HTMLConverter, TextConverter
from pdfminer.cmapdb import CMapDB
from pdfminer.layout import LAParams
from cStringIO import StringIO

#!/usr/bin/env python
# encoding: utf-8

dirname = os.path.dirname(os.path.abspath(__file__))
up_dir = os.path.dirname(dirname)
sys.path.append(up_dir)


#from pyPdf import PdfFileReader


class PDF(DocType):