Home
last modified time | relevance | path

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

/external/pdfium/core/fpdftext/
Dcpdf_textpage.cpp44 float CalculateBaseSpace(const CPDF_TextObject* pTextObj, in CalculateBaseSpace() argument
47 const size_t 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 float fontsize_h = pTextObj->m_TextState.GetFontSizeH(); in CalculateBaseSpace()
714 CPDF_TextObject* pTextObj, in ProcessTextObject() argument
718 if (fabs(pTextObj->m_Right - pTextObj->m_Left) < 0.01f) in ProcessTextObject()
723 Obj.m_pTextObj = pTextObj; in ProcessTextObject()
729 if (IsSameAsPreTextObject(pTextObj, pObjList, ObjPos)) in ProcessTextObject()
[all …]
Dcpdf_textpage.h139 void ProcessTextObject(CPDF_TextObject* pTextObj,
146 bool IsSameAsPreTextObject(CPDF_TextObject* pTextObj,
159 const CPDF_TextObject* pTextObj) const;
164 bool IsRightToLeft(const CPDF_TextObject* pTextObj,
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp46 CPDF_TextObject* pTextObj) { in TestProcessText() argument
47 pGen->ProcessText(buf, pTextObj); in TestProcessText()
172 auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); in TEST_F() local
174 pTextObj->m_TextState.SetFont(pFont); in TEST_F()
175 pTextObj->m_TextState.SetFontSize(10.0f); in TEST_F()
178 pTextObj->m_ColorState.SetFillColor(pCS, rgb, 3); in TEST_F()
181 pTextObj->m_ColorState.SetStrokeColor(pCS, rgb2, 3); in TEST_F()
182 pTextObj->m_GeneralState.SetFillAlpha(0.5f); in TEST_F()
183 pTextObj->m_GeneralState.SetStrokeAlpha(0.8f); in TEST_F()
184 pTextObj->Transform(CFX_Matrix(1, 0, 0, 1, 100, 100)); in TEST_F()
[all …]
Dcpdf_pagecontentgenerator.cpp163 else if (CPDF_TextObject* pTextObj = pPageObj->AsText()) in ProcessPageObjects() local
164 ProcessText(buf, pTextObj); in ProcessPageObjects()
354 CPDF_TextObject* pTextObj) { in ProcessText() argument
355 ProcessGraphics(buf, pTextObj); in ProcessText()
356 *buf << "BT " << pTextObj->GetTextMatrix() << " Tm "; in ProcessText()
357 CPDF_Font* pFont = pTextObj->GetFont(); in ProcessText()
388 *buf << "/" << PDF_NameEncode(dictName) << " " << pTextObj->GetFontSize() in ProcessText()
391 for (uint32_t charcode : pTextObj->GetCharCodes()) { in ProcessText()
Dcpdf_pagecontentgenerator.h39 void ProcessText(std::ostringstream* buf, CPDF_TextObject* pTextObj);
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp415 auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); in FPDFPageObj_NewTextObj() local
416 pTextObj->m_TextState.SetFont(pFont); in FPDFPageObj_NewTextObj()
417 pTextObj->m_TextState.SetFontSize(font_size); in FPDFPageObj_NewTextObj()
418 pTextObj->DefaultStates(); in FPDFPageObj_NewTextObj()
419 return pTextObj.release(); // Caller takes ownership. in FPDFPageObj_NewTextObj()
424 auto* pTextObj = static_cast<CPDF_TextObject*>(text_object); in FPDFText_SetText() local
425 if (!pTextObj) in FPDFText_SetText()
432 pTextObj->GetFont()->AppendChar( in FPDFText_SetText()
433 &byteText, pTextObj->GetFont()->CharCodeFromUnicode(wc)); in FPDFText_SetText()
435 pTextObj->SetText(byteText); in FPDFText_SetText()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp57 CPDF_TextObject* pTextObj = GetText(i); in GetClipBox() local
58 if (!pTextObj) { in GetClipBox()
68 layer_rect = CFX_FloatRect(pTextObj->GetBBox(nullptr)); in GetClipBox()
71 layer_rect.Union(CFX_FloatRect(pTextObj->GetBBox(nullptr))); in GetClipBox()
/external/pdfium/fxjs/
Dcjs_document.cpp1255 CPDF_TextObject* pTextObj = pPageObj->AsText(); in getPageNthWord() local
1256 int nObjWords = CountWords(pTextObj); in getPageNthWord()
1258 swRet = GetObjWordStr(pTextObj, nWordNo - nWords); in getPageNthWord()
1324 int Document::CountWords(CPDF_TextObject* pTextObj) { in CountWords() argument
1325 if (!pTextObj) in CountWords()
1330 CPDF_Font* pFont = pTextObj->GetFont(); in CountWords()
1336 for (size_t i = 0, sz = pTextObj->CountChars(); i < sz; ++i) { in CountWords()
1340 pTextObj->GetCharInfo(i, &charcode, &kerning); in CountWords()
1358 WideString Document::GetObjWordStr(CPDF_TextObject* pTextObj, int nWordIndex) { in GetObjWordStr() argument
1361 CPDF_Font* pFont = pTextObj->GetFont(); in GetObjWordStr()
[all …]
Dcjs_document.h220 int CountWords(CPDF_TextObject* pTextObj);
221 WideString GetObjWordStr(CPDF_TextObject* pTextObj, int nWordIndex);