Home
last modified time | relevance | path

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

/external/pdfium/fpdfsdk/
Dfpdftext_embeddertest.cpp38 FPDF_TEXTPAGE textpage = FPDFText_LoadPage(page); in TEST_F() local
39 EXPECT_TRUE(textpage); in TEST_F()
46 EXPECT_EQ(0, FPDFText_GetText(textpage, 0, 128, nullptr)); in TEST_F()
47 EXPECT_EQ(0, FPDFText_GetText(textpage, -1, 128, fixed_buffer)); in TEST_F()
48 EXPECT_EQ(0, FPDFText_GetText(textpage, 0, -1, fixed_buffer)); in TEST_F()
49 EXPECT_EQ(1, FPDFText_GetText(textpage, 0, 0, fixed_buffer)); in TEST_F()
54 EXPECT_EQ(2, FPDFText_GetText(textpage, 0, 1, fixed_buffer)); in TEST_F()
59 int num_chars = FPDFText_GetText(textpage, 0, 128, fixed_buffer); in TEST_F()
66 static_cast<size_t>(FPDFText_CountChars(textpage))); in TEST_F()
69 FPDFText_GetUnicode(textpage, i)) in TEST_F()
[all …]
Dfpdftext.cpp61 CPDF_TextPage* textpage = new CPDF_TextPage( in FPDFText_LoadPage() local
64 textpage->ParseTextPage(); in FPDFText_LoadPage()
65 return textpage; in FPDFText_LoadPage()
76 CPDF_TextPage* textpage = CPDFTextPageFromFPDFTextPage(text_page); in FPDFText_CountChars() local
77 return textpage->CountChars(); in FPDFText_CountChars()
85 CPDF_TextPage* textpage = CPDFTextPageFromFPDFTextPage(text_page); in FPDFText_GetUnicode() local
86 if (index < 0 || index >= textpage->CountChars()) in FPDFText_GetUnicode()
90 textpage->GetCharInfo(index, &charinfo); in FPDFText_GetUnicode()
98 CPDF_TextPage* textpage = CPDFTextPageFromFPDFTextPage(text_page); in FPDFText_GetFontSize() local
100 if (index < 0 || index >= textpage->CountChars()) in FPDFText_GetFontSize()
[all …]
/external/pdfium/samples/
Dpdfium_test.cc218 std::unique_ptr<void, FPDFTextPageDeleter> textpage(FPDFText_LoadPage(page)); in WriteText() local
219 for (int i = 0; i < FPDFText_CountChars(textpage.get()); i++) { in WriteText()
220 uint32_t c = FPDFText_GetUnicode(textpage.get(), i); in WriteText()