1 // Copyright 2020 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 
7 #ifndef FPDFSDK_CPDFSDK_RENDERPAGE_H_
8 #define FPDFSDK_CPDFSDK_RENDERPAGE_H_
9 
10 class CFX_Matrix;
11 class CPDFSDK_PauseAdapter;
12 class CPDF_Page;
13 class CPDF_PageRenderContext;
14 struct FX_RECT;
15 
16 void CPDFSDK_RenderPage(CPDF_PageRenderContext* pContext,
17                         CPDF_Page* pPage,
18                         const CFX_Matrix& matrix,
19                         const FX_RECT& clipping_rect,
20                         int flags);
21 
22 // TODO(thestig): Consider giving this a better name, and make its parameters
23 // more similar to those of CPDFSDK_RenderPage().
24 void CPDFSDK_RenderPageWithContext(CPDF_PageRenderContext* pContext,
25                                    CPDF_Page* pPage,
26                                    int start_x,
27                                    int start_y,
28                                    int size_x,
29                                    int size_y,
30                                    int rotate,
31                                    int flags,
32                                    bool need_to_restore,
33                                    CPDFSDK_PauseAdapter* pause);
34 
35 #endif  // FPDFSDK_CPDFSDK_RENDERPAGE_H_
36