Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fpdf_ext_embeddertest.cpp
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "public/fpdf_ext.h"
6#include "public/fpdfview.h"
7#include "testing/embedder_test.h"
8#include "testing/gtest/include/gtest/gtest.h"
9
11
15
17 ASSERT_TRUE(OpenDocument("hello_world.pdf"));
18 EXPECT_EQ(PAGEMODE_USENONE, FPDFDoc_GetPageMode(document()));
19}
20
22 ASSERT_TRUE(OpenDocument("use_outlines.pdf"));
23 EXPECT_EQ(PAGEMODE_USEOUTLINES, FPDFDoc_GetPageMode(document()));
24}
FPDF_EXPORT int FPDF_CALLCONV FPDFDoc_GetPageMode(FPDF_DOCUMENT document)
Definition fpdf_ext.cpp:84
#define PAGEMODE_UNKNOWN
Definition fpdf_ext.h:92
#define PAGEMODE_USENONE
Definition fpdf_ext.h:94
#define PAGEMODE_USEOUTLINES
Definition fpdf_ext.h:96
TEST_F(FPDFExtEmbedderTest, PageModeUnknown)