OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef PUBLIC_FPDF_PROGRESSIVE_H_ | 7 #ifndef PUBLIC_FPDF_PROGRESSIVE_H_ |
8 #define PUBLIC_FPDF_PROGRESSIVE_H_ | 8 #define PUBLIC_FPDF_PROGRESSIVE_H_ |
9 | 9 |
10 #include "fpdfview.h" | 10 #include "fpdfview.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 // clockwise), | 65 // clockwise), |
66 // 2 (rotated 180 degrees), 3 (rotated 90 degrees | 66 // 2 (rotated 180 degrees), 3 (rotated 90 degrees |
67 // counter-clockwise). | 67 // counter-clockwise). |
68 // flags - 0 for normal display, or combination of flags | 68 // flags - 0 for normal display, or combination of flags |
69 // defined above. | 69 // defined above. |
70 // pause - The IFSDK_PAUSE interface.A callback mechanism | 70 // pause - The IFSDK_PAUSE interface.A callback mechanism |
71 // allowing the page rendering process | 71 // allowing the page rendering process |
72 // Return value: | 72 // Return value: |
73 // Rendering Status. See flags for progressive process status for the | 73 // Rendering Status. See flags for progressive process status for the |
74 // details. | 74 // details. |
75 // Notes: | |
76 // The method cannot not support to render page which the document | |
77 // consists of dynamic XFA fields. | |
78 // | 75 // |
79 DLLEXPORT int STDCALL FPDF_RenderPageBitmap_Start(FPDF_BITMAP bitmap, | 76 DLLEXPORT int STDCALL FPDF_RenderPageBitmap_Start(FPDF_BITMAP bitmap, |
80 FPDF_PAGE page, | 77 FPDF_PAGE page, |
81 int start_x, | 78 int start_x, |
82 int start_y, | 79 int start_y, |
83 int size_x, | 80 int size_x, |
84 int size_y, | 81 int size_y, |
85 int rotate, | 82 int rotate, |
86 int flags, | 83 int flags, |
87 IFSDK_PAUSE* pause); | 84 IFSDK_PAUSE* pause); |
88 | 85 |
89 // Function: FPDF_RenderPage_Continue | 86 // Function: FPDF_RenderPage_Continue |
90 // Continue rendering a PDF page. | 87 // Continue rendering a PDF page. |
91 // Parameters: | 88 // Parameters: |
92 // page - Handle to the page. Returned by FPDF_LoadPage | 89 // page - Handle to the page. Returned by FPDF_LoadPage |
93 // function. | 90 // function. |
94 // pause - The IFSDK_PAUSE interface.A callback mechanism | 91 // pause - The IFSDK_PAUSE interface.A callback mechanism |
95 // allowing the page rendering process | 92 // allowing the page rendering process |
96 // to be paused before it's finished. This can be NULL | 93 // to be paused before it's finished. This can be NULL |
97 // if you don't want to pause. | 94 // if you don't want to pause. |
98 // Return value: | 95 // Return value: |
99 // The rendering status. See flags for progressive process status for | 96 // The rendering status. See flags for progressive process status for |
100 // the details. | 97 // the details. |
101 // Notes: | |
102 // The method cannot not support to render page which the document | |
103 // consists of dynamic XFA fields. | |
104 // | |
105 DLLEXPORT int STDCALL FPDF_RenderPage_Continue(FPDF_PAGE page, | 98 DLLEXPORT int STDCALL FPDF_RenderPage_Continue(FPDF_PAGE page, |
106 IFSDK_PAUSE* pause); | 99 IFSDK_PAUSE* pause); |
107 | 100 |
108 // Function: FPDF_RenderPage_Close | 101 // Function: FPDF_RenderPage_Close |
109 // Release the resource allocate during page rendering. Need to be | 102 // Release the resource allocate during page rendering. Need to be |
110 // called after finishing rendering or | 103 // called after finishing rendering or |
111 // cancel the rendering. | 104 // cancel the rendering. |
112 // Parameters: | 105 // Parameters: |
113 // page - Handle to the page. Returned by FPDF_LoadPage | 106 // page - Handle to the page. Returned by FPDF_LoadPage |
114 // function. | 107 // function. |
115 // Return value: | 108 // Return value: |
116 // NULL | 109 // NULL |
117 // Notes: | |
118 // The method cannot not support to render page which the document | |
119 // consists of dynamic XFA fields. | |
120 // | |
121 DLLEXPORT void STDCALL FPDF_RenderPage_Close(FPDF_PAGE page); | 110 DLLEXPORT void STDCALL FPDF_RenderPage_Close(FPDF_PAGE page); |
122 | 111 |
123 #ifdef __cplusplus | 112 #ifdef __cplusplus |
124 } | 113 } |
125 #endif | 114 #endif |
126 | 115 |
127 #endif // PUBLIC_FPDF_PROGRESSIVE_H_ | 116 #endif // PUBLIC_FPDF_PROGRESSIVE_H_ |
OLD | NEW |