| 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 "../../../include/fpdfapi/fpdf_render.h" | 7 #include "../../../include/fpdfapi/fpdf_render.h" |
| 8 #include "../../../include/fpdfapi/fpdf_module.h" | 8 #include "../../../include/fpdfapi/fpdf_module.h" |
| 9 #include "../fpdf_page/pageint.h" | 9 #include "../fpdf_page/pageint.h" |
| 10 #include "../../../include/fxge/fx_ge.h" | 10 #include "../../../include/fxge/fx_ge.h" |
| (...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 865 } | 865 } |
| 866 CFX_AffineMatrix text_matrix; | 866 CFX_AffineMatrix text_matrix; |
| 867 textobj->GetTextMatrix(&text_matrix); | 867 textobj->GetTextMatrix(&text_matrix); |
| 868 CPDF_TextRenderer::DrawTextPath(&text_device, textobj->m_nChars, tex
tobj->m_pCharCodes, textobj->m_pCharPos, | 868 CPDF_TextRenderer::DrawTextPath(&text_device, textobj->m_nChars, tex
tobj->m_pCharCodes, textobj->m_pCharPos, |
| 869 textobj->m_TextState.GetFont(), text
obj->m_TextState.GetFontSize(), | 869 textobj->m_TextState.GetFont(), text
obj->m_TextState.GetFontSize(), |
| 870 &text_matrix, &new_matrix, textobj->
m_GraphState, (FX_ARGB) - 1, 0, NULL); | 870 &text_matrix, &new_matrix, textobj->
m_GraphState, (FX_ARGB) - 1, 0, NULL); |
| 871 } | 871 } |
| 872 } | 872 } |
| 873 CPDF_RenderStatus bitmap_render; | 873 CPDF_RenderStatus bitmap_render; |
| 874 bitmap_render.Initialize(m_Level + 1, m_pContext, &bitmap_device, NULL, | 874 bitmap_render.Initialize(m_Level + 1, m_pContext, &bitmap_device, NULL, |
| 875 m_pStopObj, NULL, NULL, &m_Options, 0, m_bDropObjec
ts, pFormResource, TRUE); | 875 m_pStopObj, NULL, NULL, &m_Options, 0, m_bDropObjec
ts, pFormResource); |
| 876 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); | 876 bitmap_render.ProcessObjectNoClip(pPageObj, &new_matrix); |
| 877 m_bStopped = bitmap_render.m_bStopped; | 877 m_bStopped = bitmap_render.m_bStopped; |
| 878 if (pSMaskDict) { | 878 if (pSMaskDict) { |
| 879 CFX_AffineMatrix smask_matrix; | 879 CFX_AffineMatrix smask_matrix; |
| 880 FXSYS_memcpy32(&smask_matrix, pGeneralState->m_SMaskMatrix, sizeof smask
_matrix); | 880 FXSYS_memcpy32(&smask_matrix, pGeneralState->m_SMaskMatrix, sizeof smask
_matrix); |
| 881 smask_matrix.Concat(*pObj2Device); | 881 smask_matrix.Concat(*pObj2Device); |
| 882 CFX_DIBSource* pSMaskSource = LoadSMask(pSMaskDict, &rect, &smask_matrix
); | 882 CFX_DIBSource* pSMaskSource = LoadSMask(pSMaskDict, &rect, &smask_matrix
); |
| 883 if (pSMaskSource) { | 883 if (pSMaskSource) { |
| 884 bitmap->MultiplyAlpha(pSMaskSource); | 884 bitmap->MultiplyAlpha(pSMaskSource); |
| 885 delete pSMaskSource; | 885 delete pSMaskSource; |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1479 CPDF_ContentMarkItem& item = pData->GetItem(i); | 1479 CPDF_ContentMarkItem& item = pData->GetItem(i); |
| 1480 if (item.GetName() == FX_BSTRC("OC") && item.GetParamType() == CPDF_Cont
entMarkItem::PropertiesDict) { | 1480 if (item.GetName() == FX_BSTRC("OC") && item.GetParamType() == CPDF_Cont
entMarkItem::PropertiesDict) { |
| 1481 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); | 1481 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); |
| 1482 if (!CheckOCGVisible(pOCG)) { | 1482 if (!CheckOCGVisible(pOCG)) { |
| 1483 return FALSE; | 1483 return FALSE; |
| 1484 } | 1484 } |
| 1485 } | 1485 } |
| 1486 } | 1486 } |
| 1487 return TRUE; | 1487 return TRUE; |
| 1488 } | 1488 } |
| OLD | NEW |