A UnOfficial aadhaar pdf data parsing class in Python
This is just for Example purpose import this file and use the class as you want to use it in your project.
from HC_AADHAAR_PDF import HC_AADHAAR_PDF
test = HC_AADHAAR_PDF("e_aadhaar1234567890.pdf", password="XXXX####")
JSON_DATA = test.get_json()
EXTRACTED_TEXT = test.get_text()
from HC_AADHAAR_PDF import HC_AADHAAR_PDF
test = HC_AADHAAR_PDF("e_aadhaar1234567890.pdf", bruteForce=True)
JSON_DATA = test.get_json()
EXTRACTED_TEXT = test.get_text()
It is recommended to use the password if you know because bruteforce option will take a lot of time to crack the password. So If you don't know the password, and have patience then you can use try brute force method to break it down.
Note: You can improve its response time if you help it recognizing your passowrd by save file with name containing any known part of password like:
First 4 characters of name and year of birth for new aadhaar card
Pin code for older aadhaar card format
SURESH.pdf # Only name is known
SURESH1990.pdf # Name and year of birth is known
1990.pdf # Only year of birth is known
123456.pdf # pin code is known (for older aadhaar card format)
. . . .
A UnOfficial pan card pdf data parsing class in Python
This is just for Example purpose import this file and use the class as you want to use it in your project.
- Extract PAN Card Data from PDF by cracking the password
- Extract PAN Card Data from PDF by providing the password
- NSDL PAN Card PDF
- UTI PAN Card PDF
- Instant PAN Card PDF
from HC_PAN_PDF import HC_PAN_PDF
MyObj = HC_PAN_PDF("MyPanCard.pdf", password="01011990")
JSON_DATA = MyObj.get_json() # retrun DICT
EXTRACTED_TEXT = MyObj.get_text() # return STRING
META_INFO = MyObj.get_meta() # return DICT
from HC_PAN_PDF import HC_PAN_PDF
MyObj = HC_PAN_PDF("MyPanCard.pdf", bruteForce=True)
JSON_DATA = MyObj.get_json() # retrun DICT
EXTRACTED_TEXT = MyObj.get_text() # return STRING
META_INFO = MyObj.get_meta() # return DICT
It is recommended to use the password if you know because bruteforce option will take around 1 Minute to crack the password. So If you don't know the password, and have patience then you can use try brute force method to break it down.