 					# console.log 'loading pdf', newVal, oldVal
 					return unless newVal?
 					scope.loadCount = 0; # new pdf, so reset load count
+					scope.loadSuccess = false
 					ctrl.load()
 					# trigger a redraw
 					scope.scale = angular.copy (scope.scale)

					numScale * $scope.pdfPageSize[1]
				]
				# console.log 'in setScale result', $scope.scale.scale, $scope.defaultPageSize

		@redraw = (position) ->
			# console.log 'in redraw'

					if scope.loadCount > 3 || error.match(/^Missing PDF/i) || error.match(/^loading/i)
						scope.$emit 'pdf:error:display'
						return
					if scope.loadSuccess
						ctrl.load()
						# trigger a redraw
						scope.scale = angular.copy (scope.scale)
					else
						scope.$emit 'pdf:error:display'
						return

				scope.$on 'pdf:page:size-change', (event, pageNum, delta) ->
					#console.log 'page size change event', pageNum, delta
