Lines Matching refs:output_doc
29 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
30 EXPECT_TRUE(output_doc); in TEST_F()
31 EXPECT_FALSE(FPDF_CopyViewerPreferences(output_doc, document())); in TEST_F()
32 FPDF_CloseDocument(output_doc); in TEST_F()
38 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
39 EXPECT_TRUE(output_doc); in TEST_F()
40 EXPECT_TRUE(FPDF_CopyViewerPreferences(output_doc, document())); in TEST_F()
41 FPDF_CloseDocument(output_doc); in TEST_F()
50 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
51 ASSERT_TRUE(output_doc); in TEST_F()
52 EXPECT_TRUE(FPDF_CopyViewerPreferences(output_doc, document())); in TEST_F()
53 EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1", 0)); in TEST_F()
54 EXPECT_EQ(1, FPDF_GetPageCount(output_doc)); in TEST_F()
55 FPDF_CloseDocument(output_doc); in TEST_F()
63 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
64 EXPECT_TRUE(output_doc); in TEST_F()
65 EXPECT_TRUE(FPDF_CopyViewerPreferences(output_doc, document())); in TEST_F()
71 EXPECT_TRUE(FPDF_SaveAsCopy(output_doc, &writer, 0)); in TEST_F()
72 FPDF_CloseDocument(output_doc); in TEST_F()
78 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
79 EXPECT_TRUE(output_doc); in TEST_F()
80 EXPECT_TRUE(FPDF_CopyViewerPreferences(output_doc, document())); in TEST_F()
86 EXPECT_TRUE(FPDF_SaveAsCopy(output_doc, &writer, 0)); in TEST_F()
87 FPDF_CloseDocument(output_doc); in TEST_F()
96 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
97 EXPECT_TRUE(output_doc); in TEST_F()
98 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "clams", 0)); in TEST_F()
99 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "0", 0)); in TEST_F()
100 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "42", 0)); in TEST_F()
101 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "1,2", 0)); in TEST_F()
102 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "1-2", 0)); in TEST_F()
103 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), ",1", 0)); in TEST_F()
104 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "1,", 0)); in TEST_F()
105 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "1-", 0)); in TEST_F()
106 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "-1", 0)); in TEST_F()
107 EXPECT_FALSE(FPDF_ImportPages(output_doc, document(), "-,0,,,1-", 0)); in TEST_F()
108 FPDF_CloseDocument(output_doc); in TEST_F()
119 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
120 EXPECT_TRUE(output_doc); in TEST_F()
121 EXPECT_TRUE(FPDF_CopyViewerPreferences(output_doc, document())); in TEST_F()
122 EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1,1,1,1", 0)); in TEST_F()
123 EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1-1", 0)); in TEST_F()
124 EXPECT_EQ(5, FPDF_GetPageCount(output_doc)); in TEST_F()
125 FPDF_CloseDocument(output_doc); in TEST_F()
136 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
137 EXPECT_TRUE(output_doc); in TEST_F()
138 EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1", 0)); in TEST_F()
139 FPDF_CloseDocument(output_doc); in TEST_F()
167 FPDF_DOCUMENT output_doc = FPDF_CreateNewDocument(); in TEST_F() local
168 ASSERT_TRUE(output_doc); in TEST_F()
169 EXPECT_TRUE(FPDF_ImportPages(output_doc, document(), "1,2,3,4", 0)); in TEST_F()
170 ASSERT_EQ(4, FPDF_GetPageCount(output_doc)); in TEST_F()
172 FPDF_PAGE page = FPDF_LoadPage(output_doc, i); in TEST_F()
185 FPDF_CloseDocument(output_doc); in TEST_F()