From 7319b7f584f2199a71bc8034943e5ef71c15d28f Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Wed, 31 Oct 2018 14:45:02 -0400 Subject: [PATCH] xml chars output bbx instead of width/height --- pdfmajor/converters/XMLConverter.py | 6 ++++-- setup.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pdfmajor/converters/XMLConverter.py b/pdfmajor/converters/XMLConverter.py index e823744..fd983ca 100644 --- a/pdfmajor/converters/XMLConverter.py +++ b/pdfmajor/converters/XMLConverter.py @@ -125,8 +125,10 @@ class XMLConverter(PDFConverter): def place_text(self, char: LTChar): with self.place_elm_with_child('char', { - 'width': char.width, - 'height': char.height, + 'x0': char.x0, + 'x1': char.x1, + 'y0': char.y0, + 'y1': char.y1, }, no_additional_char=True): self.write(char.get_text(), lineend='', deep_space="") diff --git a/setup.py b/setup.py index b9ebf37..97cd535 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ import sys with open('README.md') as readme_file: SETUP = { "name": "pdfmajor", - "version": "1.1.5", + "version": "1.1.6", "packages": find_packages(include=['pdfmajor*']), "install_requires": [ 'pycryptodome',