Skip to content

Commit

Permalink
Make use of locationHelper within the adobe reader VBuf pyuthon code
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonard de Ruijter committed Aug 2, 2018
1 parent 72cf1fa commit 99d3d02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/virtualBuffers/adobeAcrobat.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ def _getPointFromOffset(self,offset):
if not obj.location:
# Older versions of Adobe Reader have per word objects, but they don't expose a location
break
left, top, width, height = obj.location
return textInfos.Point(left + width / 2, top + height / 2)
return textInfos.Point(*obj.location.center)
return super(AdobeAcrobat_TextInfo, self)._getPointFromOffset(offset)

def _normalizeControlField(self,attrs):
Expand Down

0 comments on commit 99d3d02

Please sign in to comment.