Home
last modified time | relevance | path

Searched refs:pTextObj (Results 1 – 9 of 9) sorted by relevance

/external/pdfium/core/fpdftext/
Dcpdf_textpage.cpp44 FX_FLOAT CalculateBaseSpace(const CPDF_TextObject* pTextObj, in CalculateBaseSpace() argument
47 const int nItems = pTextObj->CountItems(); in CalculateBaseSpace()
48 if (pTextObj->m_TextState.GetCharSpace() && nItems >= 3) { in CalculateBaseSpace()
51 matrix.TransformDistance(pTextObj->m_TextState.GetCharSpace()); in CalculateBaseSpace()
55 pTextObj->GetItemInfo(i, &item); in CalculateBaseSpace()
57 FX_FLOAT fontsize_h = pTextObj->m_TextState.GetFontSizeH(); in CalculateBaseSpace()
743 CPDF_TextObject* pTextObj, in ProcessTextObject() argument
747 if (FXSYS_fabs(pTextObj->m_Right - pTextObj->m_Left) < 0.01f) in ProcessTextObject()
752 Obj.m_pTextObj = pTextObj; in ProcessTextObject()
758 if (IsSameAsPreTextObject(pTextObj, pObjList, ObjPos)) in ProcessTextObject()
[all …]
Dcpdf_textpage.h134 void ProcessTextObject(CPDF_TextObject* pTextObj,
141 bool IsSameAsPreTextObject(CPDF_TextObject* pTextObj,
154 const CPDF_TextObject* pTextObj) const;
159 bool IsRightToLeft(const CPDF_TextObject* pTextObj,
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp34 CPDF_TextObject* pTextObj = new CPDF_TextObject; in FPDFPageObj_NewTextObj() local
35 pTextObj->m_TextState.SetFont(pFont); in FPDFPageObj_NewTextObj()
36 pTextObj->m_TextState.SetFontSize(font_size); in FPDFPageObj_NewTextObj()
37 pTextObj->DefaultStates(); in FPDFPageObj_NewTextObj()
38 return pTextObj; in FPDFPageObj_NewTextObj()
46 auto pTextObj = reinterpret_cast<CPDF_TextObject*>(text_object); in FPDFText_SetText() local
47 pTextObj->SetText(CFX_ByteString(text)); in FPDFText_SetText()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp37 CPDF_TextObject* pTextObj) { in TestProcessText() argument
38 pGen->ProcessText(buf, pTextObj); in TestProcessText()
160 auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); in TEST_F() local
162 pTextObj->m_TextState.SetFont(pFont); in TEST_F()
163 pTextObj->m_TextState.SetFontSize(10.0f); in TEST_F()
164 pTextObj->Transform(CFX_Matrix(1, 0, 0, 1, 100, 100)); in TEST_F()
165 pTextObj->SetText("Hello World"); in TEST_F()
167 TestProcessText(&generator, &buf, pTextObj.get()); in TEST_F()
Dcpdf_pagecontentgenerator.cpp68 else if (CPDF_TextObject* pTextObj = pPageObj->AsText()) in GenerateContent() local
69 ProcessText(&buf, pTextObj); in GenerateContent()
245 CPDF_TextObject* pTextObj) { in ProcessText() argument
247 *buf << "BT " << pTextObj->GetTextMatrix() << " Tm "; in ProcessText()
248 CPDF_Font* pFont = pTextObj->GetFont(); in ProcessText()
267 *buf << "/" << PDF_NameEncode(dictName) << " " << pTextObj->GetFontSize() in ProcessText()
270 for (uint32_t charcode : pTextObj->m_CharCodes) { in ProcessText()
Dcpdf_pagecontentgenerator.h35 void ProcessText(CFX_ByteTextBuf* buf, CPDF_TextObject* pTextObj);
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp60 CPDF_TextObject* pTextObj = GetText(i); in GetClipBox() local
61 if (!pTextObj) { in GetClipBox()
71 layer_rect = CFX_FloatRect(pTextObj->GetBBox(nullptr)); in GetClipBox()
74 layer_rect.Union(CFX_FloatRect(pTextObj->GetBBox(nullptr))); in GetClipBox()
/external/pdfium/fpdfsdk/javascript/
DDocument.cpp1370 CPDF_TextObject* pTextObj = pPageObj->AsText(); in getPageNthWord() local
1371 int nObjWords = CountWords(pTextObj); in getPageNthWord()
1373 swRet = GetObjWordStr(pTextObj, nWordNo - nWords); in getPageNthWord()
1457 int Document::CountWords(CPDF_TextObject* pTextObj) { in CountWords() argument
1458 if (!pTextObj) in CountWords()
1463 CPDF_Font* pFont = pTextObj->GetFont(); in CountWords()
1469 for (int i = 0, sz = pTextObj->CountChars(); i < sz; i++) { in CountWords()
1473 pTextObj->GetCharInfo(i, &charcode, &kerning); in CountWords()
1491 CFX_WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj, in GetObjWordStr() argument
1495 CPDF_Font* pFont = pTextObj->GetFont(); in GetObjWordStr()
[all …]
DDocument.h299 int CountWords(CPDF_TextObject* pTextObj);
300 CFX_WideString GetObjWordStr(CPDF_TextObject* pTextObj, int nWordIndex);