Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Main method to parse a PDF document
@param fileName The name of the file to be parsed
@param forceMode Boolean to specify if ignore errors or not. Default value: False.
@param looseMode Boolean to set the loose mode when parsing objects. Default value: False.
@return A PDFFile instance

src/t/h/thug-HEAD/src/peepdf/peepdf.py   thug(Download)
        if fileName != None:
            pdfParser = PDFParser()
            ret,pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode, options.isManualAnalysis)
            if options.checkOnVT:
                # Checks the MD5 on VirusTotal

src/p/d/pdfxray_public-HEAD/apps/peep/harness.py   pdfxray_public(Download)
def snatch_contents(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    body = pdf.body
    all_objs = []
def snatch_version(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    statsDict = pdf.getStats()
    objs = []

src/p/d/pdfxray_lite-HEAD/lib/harness.py   pdfxray_lite(Download)
def snatch_contents(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    body = pdf.body
    all_objs = []
def snatch_version(file):
    pdfParser = PDFParser()
    ret,pdf = pdfParser.parse(file, True, False)
    statsDict = pdf.getStats()
    objs = []

src/p/d/pdfxray_public-HEAD/apps/peep/views.py   pdfxray_public(Download)
		t = time()
		pdfParser = PDFParser()
		ret,data = pdfParser.parse(file, True, False)
		process_time = time() - t
		#data = jPdf(json.loads(output)) #build the class object

src/p/d/pdfxray_public-HEAD/apps/peep/peepdf.py   pdfxray_public(Download)
		stats += 'Warning: Spidermonkey is not installed!!'+newLine
	pdfParser = PDFParser()
	ret,pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode)
	errors = pdf.getErrors()
	for error in errors:

src/p/d/pdfxray_lite-HEAD/lib/peepdf.py   pdfxray_lite(Download)
		stats += 'Warning: Spidermonkey is not installed!!'+newLine
	pdfParser = PDFParser()
	ret,pdf = pdfParser.parse(fileName, options.isForceMode, options.isLooseMode)
	errors = pdf.getErrors()
	for error in errors: