Home
last modified time | relevance | path

Searched refs:textpage (Results 1 – 2 of 2) sorted by relevance

/external/pdfium/fpdfsdk/src/
Dfpdftext_embeddertest.cpp37 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
38 EXPECT_NE(nullptr, textpage); in TEST_F()
45 int num_chars = FPDFText_GetText(textpage, 0, 128, fixed_buffer); in TEST_F()
51 EXPECT_EQ(sizeof(expected) - 1, FPDFText_CountChars(textpage)); in TEST_F()
54 FPDFText_GetUnicode(textpage, i)) in TEST_F()
58 EXPECT_EQ(12.0, FPDFText_GetFontSize(textpage, 0)); in TEST_F()
59 EXPECT_EQ(16.0, FPDFText_GetFontSize(textpage, 15)); in TEST_F()
65 FPDFText_GetCharBox(textpage, 4, &left, &right, &bottom, &top); in TEST_F()
71 EXPECT_EQ(4, FPDFText_GetCharIndexAtPos(textpage, 42.0, 50.0, 1.0, 1.0)); in TEST_F()
72 EXPECT_EQ(-1, FPDFText_GetCharIndexAtPos(textpage, 0.0, 0.0, 1.0, 1.0)); in TEST_F()
[all …]
Dfpdftext.cpp33 IPDF_TextPage* textpage = in FPDFText_LoadPage() local
35 textpage->ParseTextPage(); in FPDFText_LoadPage()
36 return textpage; in FPDFText_LoadPage()
44 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page; in FPDFText_CountChars() local
45 return textpage->CountChars(); in FPDFText_CountChars()
52 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page; in FPDFText_GetUnicode() local
54 if (index < 0 || index >= textpage->CountChars()) in FPDFText_GetUnicode()
58 textpage->GetCharInfo(index, &charinfo); in FPDFText_GetUnicode()
66 IPDF_TextPage* textpage = (IPDF_TextPage*)text_page; in FPDFText_GetFontSize() local
68 if (index < 0 || index >= textpage->CountChars()) in FPDFText_GetFontSize()
[all …]