Home > Software engineering >  How to extract data from a particular area in a PDF file
How to extract data from a particular area in a PDF file

Time:03-10

See this enter image description here

you can use

pdftotext -nopgbrk -marginl 200 -margint 150 -marginb 500 -layout "certificate (9).pdf" test.txt

However since your code does not show a conversion method you will need to adapt the output lines (either ignoring age or extracting two or more chunks) to get your desired

 "CertificateID" => "91815380284",
 "BeneficiaryName"=>"Kavita",
 "Gender" => "Female",
 "IDVerified" => "Aadhaar # XXXXXXXX3661",
 "BeneficiaryReferenceID" => "34684952644017",
 "VaccinationStatus" => "Fully Vaccinated (2 Doses)"
  • Related