Exhibit 4.6 AMENDED AND RESTATED SECURITY AGREEMENT THIS AMENDED AND RESTATED SECURITY AGREEMENT, dated as of June 25, 2003 by and among GLOBAL IMAGING SYSTEMS, INC., a corporation organized under the laws of Delaware (the "Company"), and the...