#!/usr/bin/env python2

#2013/11/04
#2013/11/08

from pdfid import cPluginParent, AddPlugin

class cPDFiDNameObfuscation(cPluginParent):
#    onlyValidPDF = True
    name = 'Name Obfuscation plugin'

    def __init__(self, oPDFiD):
        self.oPDFiD = oPDFiD

    def Score(self):
        if sum([oCount.hexcode for oCount in self.oPDFiD.keywords.values()]) > 0:
            return 1.0
        else:
            return 0.0

AddPlugin(cPDFiDNameObfuscation)
