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_module.h" | 7 #include "../../../include/fpdfapi/fpdf_module.h" |
8 #include "../../../include/fpdfapi/fpdf_render.h" | 8 #include "../../../include/fpdfapi/fpdf_render.h" |
9 #include "../../../include/fxge/fx_ge.h" | 9 #include "../../../include/fxge/fx_ge.h" |
10 #include "../fpdf_page/pageint.h" | 10 #include "../fpdf_page/pageint.h" |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
752 int Transparency = m_Transparency; | 752 int Transparency = m_Transparency; |
753 FX_BOOL bGroupTransparent = FALSE; | 753 FX_BOOL bGroupTransparent = FALSE; |
754 if (pPageObj->m_Type == PDFPAGE_FORM) { | 754 if (pPageObj->m_Type == PDFPAGE_FORM) { |
755 CPDF_FormObject* pFormObj = (CPDF_FormObject*)pPageObj; | 755 CPDF_FormObject* pFormObj = (CPDF_FormObject*)pPageObj; |
756 const CPDF_GeneralStateData* pStateData = | 756 const CPDF_GeneralStateData* pStateData = |
757 pFormObj->m_GeneralState.GetObject(); | 757 pFormObj->m_GeneralState.GetObject(); |
758 if (pStateData) { | 758 if (pStateData) { |
759 group_alpha = pStateData->m_FillAlpha; | 759 group_alpha = pStateData->m_FillAlpha; |
760 } | 760 } |
761 Transparency = pFormObj->m_pForm->m_Transparency; | 761 Transparency = pFormObj->m_pForm->m_Transparency; |
762 bGroupTransparent = Transparency & PDFTRANS_ISOLATED ? TRUE : FALSE; | 762 bGroupTransparent = Transparency & PDFTRANS_ISOLATED; |
Tom Sepez
2015/10/15 17:08:31
Again !!(Transparency & PDFTRANS_ISOLATED);
Lei Zhang
2015/10/19 08:56:18
Done.
| |
763 if (pFormObj->m_pForm->m_pFormDict) { | 763 if (pFormObj->m_pForm->m_pFormDict) { |
764 pFormResource = pFormObj->m_pForm->m_pFormDict->GetDict("Resources"); | 764 pFormResource = pFormObj->m_pForm->m_pFormDict->GetDict("Resources"); |
765 } | 765 } |
766 } | 766 } |
767 FX_BOOL bTextClip = FALSE; | 767 FX_BOOL bTextClip = FALSE; |
768 if (pPageObj->m_ClipPath.NotNull() && pPageObj->m_ClipPath.GetTextCount() && | 768 if (pPageObj->m_ClipPath.NotNull() && pPageObj->m_ClipPath.GetTextCount() && |
769 m_pDevice->GetDeviceClass() == FXDC_DISPLAY && | 769 m_pDevice->GetDeviceClass() == FXDC_DISPLAY && |
770 !(m_pDevice->GetDeviceCaps(FXDC_RENDER_CAPS) & FXRC_SOFT_CLIP)) { | 770 !(m_pDevice->GetDeviceCaps(FXDC_RENDER_CAPS) & FXRC_SOFT_CLIP)) { |
771 bTextClip = TRUE; | 771 bTextClip = TRUE; |
772 } | 772 } |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1438 if (item.GetName() == FX_BSTRC("OC") && | 1438 if (item.GetName() == FX_BSTRC("OC") && |
1439 item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict) { | 1439 item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict) { |
1440 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); | 1440 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); |
1441 if (!CheckOCGVisible(pOCG)) { | 1441 if (!CheckOCGVisible(pOCG)) { |
1442 return FALSE; | 1442 return FALSE; |
1443 } | 1443 } |
1444 } | 1444 } |
1445 } | 1445 } |
1446 return TRUE; | 1446 return TRUE; |
1447 } | 1447 } |
OLD | NEW |