From c1fd18f3557515e9058ccfcfba19e0c24f516876 Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Wed, 7 Sep 2016 09:06:20 +0200 Subject: [PATCH] PdfTextExtractor: Fix text size calculation --- VAR.PdfTools/PdfTextExtractor.cs | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/VAR.PdfTools/PdfTextExtractor.cs b/VAR.PdfTools/PdfTextExtractor.cs index 87c1b54..7c27e6e 100644 --- a/VAR.PdfTools/PdfTextExtractor.cs +++ b/VAR.PdfTools/PdfTextExtractor.cs @@ -455,7 +455,8 @@ namespace VAR.PdfTools else if(elem is PdfInteger || elem is PdfReal) { double spacing = PdfElementUtils.GetReal(elem, 0); - _textWidth += spacing; + // FIXME: Apply correctly spacing + //_textWidth += spacing; } else if(elem is PdfArray) { @@ -596,6 +597,30 @@ namespace VAR.PdfTools { // FIXME: Interpret this } + else if (action.Token == "BI") + { + // FIXME: Interpret this + } + else if (action.Token == "ID") + { + // FIXME: Interpret this + } + else if (action.Token == "EI") + { + // FIXME: Interpret this + } + else if (action.Token == "W") + { + // FIXME: Interpret this + } + else if (action.Token == "n") + { + // FIXME: Interpret this + } + else if (action.Token == "Do") + { + // FIXME: Interpret this + } else { unknowCount++;