Home
last modified time | relevance | path

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

/external/pdfium/fpdfsdk/
Dfpdf_edittext.cpp458 auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); in FPDFPageObj_NewTextObj() local
459 pTextObj->m_TextState.SetFont(pFont); in FPDFPageObj_NewTextObj()
460 pTextObj->m_TextState.SetFontSize(font_size); in FPDFPageObj_NewTextObj()
461 pTextObj->DefaultStates(); in FPDFPageObj_NewTextObj()
464 return FPDFPageObjectFromCPDFPageObject(pTextObj.release()); in FPDFPageObj_NewTextObj()
469 CPDF_TextObject* pTextObj = CPDFTextObjectFromFPDFPageObject(text_object); in FPDFText_SetText() local
470 if (!pTextObj) in FPDFText_SetText()
476 pTextObj->GetFont()->AppendChar( in FPDFText_SetText()
477 &byteText, pTextObj->GetFont()->CharCodeFromUnicode(wc)); in FPDFText_SetText()
479 pTextObj->SetText(byteText); in FPDFText_SetText()
[all …]
/external/pdfium/core/fpdftext/
Dcpdf_textpage.cpp50 float CalculateBaseSpace(const CPDF_TextObject* pTextObj, in CalculateBaseSpace() argument
52 const size_t nItems = pTextObj->CountItems(); in CalculateBaseSpace()
53 if (!pTextObj->m_TextState.GetCharSpace() || nItems < 3) in CalculateBaseSpace()
58 matrix.TransformDistance(pTextObj->m_TextState.GetCharSpace()); in CalculateBaseSpace()
62 pTextObj->GetItemInfo(i, &item); in CalculateBaseSpace()
64 float fontsize_h = pTextObj->m_TextState.GetFontSizeH(); in CalculateBaseSpace()
431 const CPDF_TextObject* pTextObj) const { in GetTextByObject()
432 return GetTextByPredicate([pTextObj](const CharInfo& charinfo) { in GetTextByObject()
433 return charinfo.m_pTextObj == pTextObj; in GetTextByObject()
719 CPDF_TextObject* pTextObj, in ProcessTextObject() argument
[all …]
Dcpdf_textpage.h76 WideString GetTextByObject(const CPDF_TextObject* pTextObj) const;
109 void ProcessTextObject(CPDF_TextObject* pTextObj,
117 bool IsSameAsPreTextObject(CPDF_TextObject* pTextObj,
129 const CPDF_TextObject* pTextObj) const;
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp49 CPDF_TextObject* pTextObj) { in TestProcessText() argument
50 pGen->ProcessText(buf, pTextObj); in TestProcessText()
251 auto pTextObj = pdfium::MakeUnique<CPDF_TextObject>(); in TEST_F() local
254 pTextObj->m_TextState.SetFont(pFont); in TEST_F()
255 pTextObj->m_TextState.SetFontSize(10.0f); in TEST_F()
259 pTextObj->m_ColorState.SetFillColor(pCS, rgb); in TEST_F()
262 pTextObj->m_ColorState.SetStrokeColor(pCS, rgb2); in TEST_F()
263 pTextObj->m_GeneralState.SetFillAlpha(0.5f); in TEST_F()
264 pTextObj->m_GeneralState.SetStrokeAlpha(0.8f); in TEST_F()
265 pTextObj->Transform(CFX_Matrix(1, 0, 0, 1, 100, 100)); in TEST_F()
[all …]
Dcpdf_pagecontentgenerator.cpp300 else if (CPDF_TextObject* pTextObj = pPageObj->AsText()) in ProcessPageObject() local
301 ProcessText(buf, pTextObj); in ProcessPageObject()
493 CPDF_TextObject* pTextObj) { in ProcessText() argument
494 ProcessGraphics(buf, pTextObj); in ProcessText()
495 *buf << "BT " << pTextObj->GetTextMatrix() << " Tm "; in ProcessText()
496 RetainPtr<CPDF_Font> pFont(pTextObj->GetFont()); in ProcessText()
536 WriteFloat(*buf, pTextObj->GetFontSize()) << " Tf "; in ProcessText()
538 for (uint32_t charcode : pTextObj->GetCharCodes()) { in ProcessText()
Dcpdf_pagecontentgenerator.h44 void ProcessText(std::ostringstream* buf, CPDF_TextObject* pTextObj);
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp56 CPDF_TextObject* pTextObj = GetText(i); in GetClipBox() local
57 if (pTextObj) { in GetClipBox()
59 layer_rect.Union(CFX_FloatRect(pTextObj->GetBBox())); in GetClipBox()
61 layer_rect = CFX_FloatRect(pTextObj->GetBBox()); in GetClipBox()
/external/pdfium/fxjs/
Dcjs_document.cpp1250 CPDF_TextObject* pTextObj = pPageObj->AsText(); in getPageNthWord() local
1251 int nObjWords = pTextObj->CountWords(); in getPageNthWord()
1253 swRet = pTextObj->GetWordString(nWordNo - nWords); in getPageNthWord()