Lines Matching refs:text_page
700 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
701 ASSERT_TRUE(text_page); in TEST_F()
703 FPDF_PAGELINK page_link = FPDFLink_LoadWebLinks(text_page); in TEST_F()
739 FPDFText_ClosePage(text_page); in TEST_F()
1167 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1168 ASSERT_TRUE(text_page); in TEST_F()
1179 unsigned long size = FPDFTextObj_GetText(text_object, text_page, nullptr, 0); in TEST_F()
1184 FPDFTextObj_GetText(text_object, text_page, buffer.data(), size)); in TEST_F()
1188 ASSERT_EQ(0U, FPDFTextObj_GetText(nullptr, text_page, nullptr, 0)); in TEST_F()
1197 FPDFTextObj_GetText(text_object, text_page, buffer.data(), buffer.size()); in TEST_F()
1202 FPDFText_ClosePage(text_page); in TEST_F()
1268 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1269 ASSERT_TRUE(text_page); in TEST_F()
1273 EXPECT_EQ(kHelloGoodbyeTextSize, FPDFText_CountChars(text_page)); in TEST_F()
1278 int num_chars = FPDFText_GetText(text_page, 0, 128, buffer); in TEST_F()
1282 FPDFText_ClosePage(text_page); in TEST_F()
1291 ScopedFPDFTextPage text_page(FPDFText_LoadPage(page)); in TEST_F() local
1292 ASSERT_TRUE(text_page); in TEST_F()
1298 FPDFText_CountChars(text_page.get())); in TEST_F()
1302 FPDFText_GetText(text_page.get(), 0, FX_ArraySize(buffer) - 1, buffer); in TEST_F()
1315 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1316 ASSERT_TRUE(text_page); in TEST_F()
1324 EXPECT_EQ(kHelloGoodbyeTextSize, FPDFText_CountChars(text_page)); in TEST_F()
1327 EXPECT_FLOAT_EQ(-1.0f, FPDFText_GetCharAngle(text_page, -1)); in TEST_F()
1329 FPDFText_GetCharAngle(text_page, kHelloGoodbyeTextSize + 1)); in TEST_F()
1332 EXPECT_NEAR(FX_PI / 4.0, FPDFText_GetCharAngle(text_page, 0), 0.001); in TEST_F()
1334 FPDFText_GetCharAngle(text_page, kSubstringsSize[0]), 0.001); in TEST_F()
1337 FPDFText_GetCharAngle(text_page, kSubstringsSize[0] + kSubstringsSize[1]), in TEST_F()
1341 FPDFText_GetCharAngle(text_page, kSubstringsSize[0] + kSubstringsSize[1] + in TEST_F()
1345 FPDFText_ClosePage(text_page); in TEST_F()
1354 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1355 ASSERT_TRUE(text_page); in TEST_F()
1357 EXPECT_EQ(2, FPDFText_CountChars(text_page)); in TEST_F()
1360 EXPECT_EQ(-1, FPDFText_GetFontWeight(text_page, -1)); in TEST_F()
1361 EXPECT_EQ(-1, FPDFText_GetFontWeight(text_page, 314)); in TEST_F()
1365 EXPECT_EQ(400, FPDFText_GetFontWeight(text_page, 0)); in TEST_F()
1370 EXPECT_EQ(410, FPDFText_GetFontWeight(text_page, 1)); in TEST_F()
1372 FPDFText_ClosePage(text_page); in TEST_F()
1381 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1382 ASSERT_TRUE(text_page); in TEST_F()
1384 ASSERT_EQ(12, FPDFText_CountChars(text_page)); in TEST_F()
1389 FPDFText_GetTextRenderMode(text_page, -1)); in TEST_F()
1391 FPDFText_GetTextRenderMode(text_page, 314)); in TEST_F()
1393 ASSERT_EQ(FPDF_TEXTRENDERMODE_FILL, FPDFText_GetTextRenderMode(text_page, 0)); in TEST_F()
1396 FPDFText_GetTextRenderMode(text_page, 7)); in TEST_F()
1398 FPDFText_ClosePage(text_page); in TEST_F()
1407 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1408 ASSERT_TRUE(text_page); in TEST_F()
1410 ASSERT_EQ(1, FPDFText_CountChars(text_page)); in TEST_F()
1415 FPDFText_GetFillColor(text_page, -1, nullptr, nullptr, nullptr, nullptr)); in TEST_F()
1416 ASSERT_FALSE(FPDFText_GetFillColor(text_page, 314, nullptr, nullptr, nullptr, in TEST_F()
1419 FPDFText_GetFillColor(text_page, 0, nullptr, nullptr, nullptr, nullptr)); in TEST_F()
1425 ASSERT_TRUE(FPDFText_GetFillColor(text_page, 0, &r, &g, &b, &a)); in TEST_F()
1431 FPDFText_ClosePage(text_page); in TEST_F()
1440 FPDF_TEXTPAGE text_page = FPDFText_LoadPage(page); in TEST_F() local
1441 ASSERT_TRUE(text_page); in TEST_F()
1443 ASSERT_EQ(1, FPDFText_CountChars(text_page)); in TEST_F()
1447 ASSERT_FALSE(FPDFText_GetStrokeColor(text_page, -1, nullptr, nullptr, nullptr, in TEST_F()
1449 ASSERT_FALSE(FPDFText_GetStrokeColor(text_page, 314, nullptr, nullptr, in TEST_F()
1451 ASSERT_FALSE(FPDFText_GetStrokeColor(text_page, 0, nullptr, nullptr, nullptr, in TEST_F()
1458 ASSERT_TRUE(FPDFText_GetStrokeColor(text_page, 0, &r, &g, &b, &a)); in TEST_F()
1464 FPDFText_ClosePage(text_page); in TEST_F()
1496 ScopedFPDFTextPage text_page(FPDFText_LoadPage(page)); in TEST_F() local
1497 ASSERT_TRUE(text_page); in TEST_F()
1499 FPDFText_CountChars(text_page.get())); in TEST_F()
1505 FPDFText_GetText(text_page.get(), 0, kExpectedCount, buffer)); in TEST_F()
1516 ASSERT_TRUE(FPDFText_GetCharBox(text_page.get(), 0, &left, &right, in TEST_F()
1520 ASSERT_TRUE(FPDFText_GetCharBox(text_page.get(), 4, &left, &right, in TEST_F()
1524 ASSERT_TRUE(FPDFText_GetCharBox(text_page.get(), 8, &left, &right, in TEST_F()
1533 ASSERT_TRUE(FPDFText_GetMatrix(text_page.get(), i, &matrix)) << i; in TEST_F()
1544 EXPECT_FALSE(FPDFText_GetMatrix(text_page.get(), 10, &matrix)); in TEST_F()
1545 EXPECT_FALSE(FPDFText_GetMatrix(text_page.get(), -1, &matrix)); in TEST_F()
1546 EXPECT_FALSE(FPDFText_GetMatrix(text_page.get(), 0, nullptr)); in TEST_F()