Lines Matching full:page
35 FPDF_PAGE page = LoadPage(1); in TEST_F() local
36 ASSERT_TRUE(page); in TEST_F()
39 EXPECT_TRUE(FPDFPage_GetMediaBox(page, &mediabox.left, &mediabox.bottom, in TEST_F()
47 EXPECT_TRUE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
55 EXPECT_TRUE(FPDFPage_GetBleedBox(page, &bleedbox.left, &bleedbox.bottom, in TEST_F()
63 EXPECT_TRUE(FPDFPage_GetTrimBox(page, &trimbox.left, &trimbox.bottom, in TEST_F()
71 EXPECT_TRUE(FPDFPage_GetArtBox(page, &artbox.left, &artbox.bottom, in TEST_F()
78 UnloadPage(page); in TEST_F()
82 FPDF_PAGE page = LoadPage(3); in TEST_F() local
83 ASSERT_TRUE(page); in TEST_F()
86 EXPECT_TRUE(FPDFPage_GetMediaBox(page, &mediabox.left, &mediabox.bottom, in TEST_F()
94 EXPECT_TRUE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
101 EXPECT_FALSE(FPDFPage_GetCropBox(page, nullptr, &cropbox.bottom, in TEST_F()
103 EXPECT_FALSE(FPDFPage_GetCropBox(page, &cropbox.left, nullptr, in TEST_F()
105 EXPECT_FALSE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
107 EXPECT_FALSE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
109 EXPECT_FALSE(FPDFPage_GetCropBox(page, nullptr, nullptr, nullptr, nullptr)); in TEST_F()
112 EXPECT_TRUE(FPDFPage_GetBleedBox(page, &bleedbox.left, &bleedbox.bottom, in TEST_F()
120 EXPECT_TRUE(FPDFPage_GetTrimBox(page, &trimbox.left, &trimbox.bottom, in TEST_F()
128 EXPECT_TRUE(FPDFPage_GetArtBox(page, &artbox.left, &artbox.bottom, in TEST_F()
135 UnloadPage(page); in TEST_F()
143 FPDF_PAGE page = LoadPage(0); in TEST_F() local
144 ASSERT_TRUE(page); in TEST_F()
147 EXPECT_FALSE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
154 UnloadPage(page); in TEST_F()
161 FPDF_PAGE page = LoadPage(0); in TEST_F() local
162 ASSERT_TRUE(page); in TEST_F()
165 EXPECT_FALSE(FPDFPage_GetBleedBox(page, &bleedbox.left, &bleedbox.bottom, in TEST_F()
172 UnloadPage(page); in TEST_F()
179 FPDF_PAGE page = LoadPage(0); in TEST_F() local
180 ASSERT_TRUE(page); in TEST_F()
183 EXPECT_FALSE(FPDFPage_GetTrimBox(page, &trimbox.left, &trimbox.bottom, in TEST_F()
190 UnloadPage(page); in TEST_F()
197 FPDF_PAGE page = LoadPage(0); in TEST_F() local
198 ASSERT_TRUE(page); in TEST_F()
201 EXPECT_FALSE(FPDFPage_GetArtBox(page, &artbox.left, &artbox.bottom, in TEST_F()
208 UnloadPage(page); in TEST_F()
219 FPDF_PAGE page = LoadPage(0); in TEST_F() local
220 ASSERT_TRUE(page); in TEST_F()
223 // Render the page as is. in TEST_F()
225 EXPECT_FALSE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
227 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
228 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
231 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
236 FPDFPage_SetCropBox(page, 10, 20, 100, 150); in TEST_F()
239 // Render the page after setting the CropBox. in TEST_F()
243 EXPECT_TRUE(FPDFPage_GetCropBox(page, &cropbox.left, &cropbox.bottom, in TEST_F()
249 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
250 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
253 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
257 UnloadPage(page); in TEST_F()
296 FPDF_PAGE page = LoadPage(0); in TEST_F() local
297 ASSERT_TRUE(page); in TEST_F()
300 // Render the page as is. in TEST_F()
302 EXPECT_FALSE(FPDFPage_GetMediaBox(page, &mediabox.left, &mediabox.bottom, in TEST_F()
304 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
305 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
308 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
313 FPDFPage_SetMediaBox(page, 20, 30, 100, 150); in TEST_F()
316 // Render the page after setting the MediaBox. in TEST_F()
320 EXPECT_TRUE(FPDFPage_GetMediaBox(page, &mediabox.left, &mediabox.bottom, in TEST_F()
326 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
327 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
330 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
335 UnloadPage(page); in TEST_F()
370 FPDF_PAGE page = LoadPage(0); in TEST_F() local
371 ASSERT_TRUE(page); in TEST_F()
381 FPDFPage_InsertClipPath(page, clip.get()); in TEST_F()
383 // TODO(tsepez): test how inserting path affects page rendering. in TEST_F()
386 UnloadPage(page); in TEST_F()
395 FPDF_PAGE page = LoadPage(0); in TEST_F() local
396 ASSERT_TRUE(page); in TEST_F()
402 EXPECT_FALSE(FPDFPage_TransFormWithClip(page, nullptr, nullptr)); in TEST_F()
403 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, nullptr)); in TEST_F()
404 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, nullptr, &clip_rect)); in TEST_F()
405 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, &clip_rect)); in TEST_F()
407 UnloadPage(page); in TEST_F()
416 FPDF_PAGE page = LoadPage(0); in TEST_F() local
417 ASSERT_TRUE(page); in TEST_F()
419 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, nullptr)); in TEST_F()
420 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, nullptr, &clip_rect)); in TEST_F()
421 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, &clip_rect)); in TEST_F()
423 UnloadPage(page); in TEST_F()
429 FPDF_PAGE page = LoadPage(0); in TEST_F() local
430 ASSERT_TRUE(page); in TEST_F()
433 // Render the page as is. in TEST_F()
434 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
435 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
438 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
444 // Render the page after transforming. in TEST_F()
450 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, nullptr)); in TEST_F()
451 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
452 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
455 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
460 UnloadPage(page); in TEST_F()
489 FPDF_PAGE page = LoadPage(0); in TEST_F() local
490 ASSERT_TRUE(page); in TEST_F()
493 // Render the page as is. in TEST_F()
494 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
495 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
498 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
504 // Render the page after transforming. in TEST_F()
510 EXPECT_TRUE(FPDFPage_TransFormWithClip(page, &half_matrix, nullptr)); in TEST_F()
511 const int page_width = static_cast<int>(FPDF_GetPageWidth(page)); in TEST_F()
512 const int page_height = static_cast<int>(FPDF_GetPageHeight(page)); in TEST_F()
515 ScopedFPDFBitmap bitmap = RenderLoadedPage(page); in TEST_F()
520 UnloadPage(page); in TEST_F()