How to Create a Verified E-Aadhaar Card PDF on Linux

The E-Aadhaar Card PDF which can be downloaded from the UID Authority of India contains a signature and some brain damaged verification code. In the middle of the page on the right side it shows “Not verified”, a yellow question mark and some more text about the digital signature. This question mark has to be clicked which then verification process. When this process is finished the question mark is replaced by a green tick and the text reads “Signature valid”. Since everybody just prints the page and deletes the file this verification process is completely superfluous. Since a smart ass wanted to save some money these documents are not signed by a proper key which makes the whole process a bit cumbersome.

The following steps show how to download the Aadhaar Card and convert it to a nice PDF:

  1. Goto and fill this ugly looking form.
  2. Enter the code from the SMS to download and save the file. I assume you saved it as “aadhaar-unverified.pdf”.
  3. Install acrobat reader and javascript plugins from the repository:
    apt-get install acroread acroread-plugins acroread-escript
  4. Open the file with acroread, the password is the ZIP of the city.
  5. Click on the question mark, a window with title “Signature Validation Status” opens.
  6. Click “Signature Properties” to open the window with the same title.
  7. Click “Show Certificate” to open the certificate window.
  8. Choose the “Trust” tab.
  9. Click “Add to Trusted Identities”.
  10. Click “OK” to close the certificate window.
  11. Click “Validate Signature”.
  12. Click “Close” to close the Signature Properties window.
  13. Print the page into the file “”.
  14. Convert the postscript file to pdf. The following command is one line. The “sed” removes a stupid “copy protection” from the postscript file and ps2pdf then creates the PDF file.
    sed "/mark currentfile eexec/,/cleartomark/ d" | ps2pdf - aadhaar-verified.pdf
  15. Now print the copy of your E-Aadhaar Card on paper and make backups of your PDF file.

Now you have a nice verified PDF which you can print without any problems. Wasn’t that simple, eh?

I found some of the information I needed on the following webpages:

One thought on “How to Create a Verified E-Aadhaar Card PDF on Linux

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>