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 #include "public/fpdf_formfill.h" | 7 #include "public/fpdf_formfill.h" |
8 | 8 |
9 #include "fpdfsdk/include/fsdk_define.h" | 9 #include "fpdfsdk/include/fsdk_define.h" |
10 #include "fpdfsdk/include/fsdk_mgr.h" | 10 #include "fpdfsdk/include/fsdk_mgr.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 // Grayscale output | 211 // Grayscale output |
212 if (flags & FPDF_GRAYSCALE) { | 212 if (flags & FPDF_GRAYSCALE) { |
213 options.m_ColorMode = RENDER_COLOR_GRAY; | 213 options.m_ColorMode = RENDER_COLOR_GRAY; |
214 options.m_ForeColor = 0; | 214 options.m_ForeColor = 0; |
215 options.m_BackColor = 0xffffff; | 215 options.m_BackColor = 0xffffff; |
216 } | 216 } |
217 | 217 |
218 options.m_AddFlags = flags >> 8; | 218 options.m_AddFlags = flags >> 8; |
219 options.m_pOCContext = new CPDF_OCContext(pPage->m_pDocument); | 219 options.m_pOCContext = new CPDF_OCContext(pPage->m_pDocument); |
220 | 220 |
221 CFX_AffineMatrix matrix; | 221 CFX_Matrix matrix; |
222 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate); | 222 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate); |
223 | 223 |
224 FX_RECT clip; | 224 FX_RECT clip; |
225 clip.left = start_x; | 225 clip.left = start_x; |
226 clip.right = start_x + size_x; | 226 clip.right = start_x + size_x; |
227 clip.top = start_y; | 227 clip.top = start_y; |
228 clip.bottom = start_y + size_y; | 228 clip.bottom = start_y + size_y; |
229 | 229 |
230 #ifdef _SKIA_SUPPORT_ | 230 #ifdef _SKIA_SUPPORT_ |
231 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice); | 231 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); | 343 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); |
344 } | 344 } |
345 } else { | 345 } else { |
346 if (aa.ActionExist(CPDF_AAction::ClosePage)) { | 346 if (aa.ActionExist(CPDF_AAction::ClosePage)) { |
347 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); | 347 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); |
348 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); | 348 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); |
349 } | 349 } |
350 } | 350 } |
351 } | 351 } |
352 } | 352 } |
OLD | NEW |