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)"