Skip to content

Commit

Permalink
changed the folder structure, and updated text accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
anjesh committed Jun 11, 2015
1 parent e04bcfa commit 188e5a8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
7 changes: 4 additions & 3 deletions PdfProcessor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from os import listdir
import os.path
import json
from PdfInfo import *
from PdfToText import *
from PdfSeparate import *
from pdftools.PdfInfo import *
from pdftools.PdfToText import *
from pdftools.PdfSeparate import *

class PDFProcessor:
def __init__(self, filePath, outputDir):
Expand All @@ -18,6 +18,7 @@ def process(self):
pdfInfo = PdfInfo(self.filePath)
self.totalPages = pdfInfo.getPages()
self.fileSize = pdfInfo.getFileSizeInBytes()
self.separatePdfPages()

def processToCheckStructured(self):
"""
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added pdftools/__init__.py
Empty file.
1 change: 0 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
pdfProcessor.extractTextFromStructuredDoc()
else:
pdfProcessor.extractTextFromScannedDoc()
pdfProcessor.separatePdfPages()
pdfProcessor.writeStats()


4 changes: 2 additions & 2 deletions tests/PdfInfoTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import unittest
import sys

from PdfInfo import *
import os.path
from pdftools.PdfInfo import *

class PdfInfoTest(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/PdfSeparateTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import glob
import os

from PdfSeparate import *
from pdftools.PdfSeparate import *

class PdfSeparateTest(unittest.TestCase):
def setUp(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/PdfToTextTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import glob
import os

from PdfToText import *
from pdftools.PdfToText import *

class PdfToTextTest(unittest.TestCase):
def setUp(self):
Expand Down

0 comments on commit 188e5a8

Please sign in to comment.