Monthly Archives: October 2009

gettinig PDF form field names

If you have a PDF and want to fill the pdf programmatic-ally, You can but you need those pdf’s form fields.

Here’s a simple Java Class which can help you. I am using iText as my PDF library.

import java.util.HashMap;
import java.util.Iterator;
import com.lowagie.text.pdf.*;

public class iTextSample {
public static void main(String[] args) throws Exception{
PdfReader reader = new PdfReader(“/Users/Admin/Public/jars/a.pdf”);
boolean test = reader.isEncrypted();


AcroFields form = reader.getAcroFields();
HashMap fields = form.getFields();
System.out.println(“Total Fields: ” + fields.size());
String key;
for (Iterator i = fields.keySet().iterator(); i.hasNext(); ) {
key = (String);
switch(form.getFieldType(key)) {

case AcroFields.FIELD_TYPE_TEXT:
System.out.print(key + “: “);
System.out.print(“, At Page:” + form.getFieldItem(key).getPage(0));
System.out.println(“, at tab:” + form.getFieldItem(key).getTabOrder(0));


Does outsourcing reduce quality? A self observed study

This year I sat for my UK and US visa both from the same city i.e Kolkata(Calcutta). From a general management perspective, there are some points I observed between the processes each country’s consulate has adopted which I’d like to share and ask you a question in the end.

  • Both countries have outsourced their visa application processes to a company called VFS Global. VFS Global is a commercial company, working in partnership with the border agency & high commission of UK and US to provide Visa services. This company handles Human Resource, paper work.
  • UK had outsourced almost 90% of its visa processing whereas US has outsourced around 45%.
  • The fee is collected in Indian Rs and most highest price of the exchange rate is taken into account.
  • Fee collection is via banks. VSF UK visa has collaboration with a few banks but only some branches. VFS-US-Visa has collaborated with HDFC bank only at many branches throughout the country. Banks charge their own service fees and tax.
  • US has their own infrastructure for the Interview inside the consulate office premises but for UK its not. In Calcutta , they have purchased some office and handed over to VFS Global.
  • UK biometric takes fingerprints and retina scan.US biometric takes only fingerprints.
  • UK visa may have a personal interview but for tourist etc. its not needed if the documents are satisfactory. US visa has a personal interview mandatory for all visa application.
  • VFS Global has more control over UK visa. Their interview center has a security check but things like mobiles etc are allowed. For US, no electronics are allowed and no sealed envelops.
  • UK visa can provide Photograph on Demand, Photocopies on Demand all good facilities for the applicant. NO such things available in US visa office.
  • UK visa center is quite commercial with people selling matrix calling cards and study loans etc. Full of banners everywhere. Nothing allowed at US visa office.

Overall, from my point of view. UK had something extra and missing than US and vice-versa.

Does outsourcing reduce quality? I leave it upto my readers to decide!