OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "../../include/fpdfapi/fpdf_pageobj.h" | 7 #include "core/include/fpdfapi/fpdf_page.h" |
8 #include "../../include/fpdfapi/fpdf_page.h" | 8 #include "core/include/fpdfapi/fpdf_pageobj.h" |
9 #include "text_int.h" | 9 #include "text_int.h" |
10 | 10 |
11 class CPDF_TextStream { | 11 class CPDF_TextStream { |
12 public: | 12 public: |
13 CPDF_TextStream(CFX_WideTextBuf& buffer, | 13 CPDF_TextStream(CFX_WideTextBuf& buffer, |
14 FX_BOOL bUseLF, | 14 FX_BOOL bUseLF, |
15 CFX_PtrArray* pObjArray); | 15 CFX_PtrArray* pObjArray); |
16 ~CPDF_TextStream() {} | 16 ~CPDF_TextStream() {} |
17 FX_BOOL ProcessObject(const CPDF_TextObject* pObj, FX_BOOL bFirstLine); | 17 FX_BOOL ProcessObject(const CPDF_TextObject* pObj, FX_BOOL bFirstLine); |
18 CFX_WideTextBuf& m_Buffer; | 18 CFX_WideTextBuf& m_Buffer; |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 CPDF_PageObject* pObject = page.GetNextObject(pos); | 328 CPDF_PageObject* pObject = page.GetNextObject(pos); |
329 if (pObject->m_Type != PDFPAGE_TEXT) { | 329 if (pObject->m_Type != PDFPAGE_TEXT) { |
330 continue; | 330 continue; |
331 } | 331 } |
332 if (textstream.ProcessObject((CPDF_TextObject*)pObject, TRUE)) { | 332 if (textstream.ProcessObject((CPDF_TextObject*)pObject, TRUE)) { |
333 break; | 333 break; |
334 } | 334 } |
335 } | 335 } |
336 return buffer.GetWideString(); | 336 return buffer.GetWideString(); |
337 } | 337 } |
OLD | NEW |