adding pdf loading selection a region and store in an xml file