| 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_page.h" | 7 #include "../../../include/fpdfapi/fpdf_page.h" |
| 8 #include "../../../include/fpdfapi/fpdf_module.h" | 8 #include "../../../include/fpdfapi/fpdf_module.h" |
| 9 #include "pageint.h" | 9 #include "pageint.h" |
| 10 CPDF_PageObject* CPDF_PageObject::Create(int type) | 10 CPDF_PageObject* CPDF_PageObject::Create(int type) |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 } | 824 } |
| 825 void CPDF_PageObjects::LoadTransInfo() | 825 void CPDF_PageObjects::LoadTransInfo() |
| 826 { | 826 { |
| 827 if (m_pFormDict == NULL) { | 827 if (m_pFormDict == NULL) { |
| 828 return; | 828 return; |
| 829 } | 829 } |
| 830 CPDF_Dictionary* pGroup = m_pFormDict->GetDict(FX_BSTRC("Group")); | 830 CPDF_Dictionary* pGroup = m_pFormDict->GetDict(FX_BSTRC("Group")); |
| 831 if (pGroup == NULL) { | 831 if (pGroup == NULL) { |
| 832 return; | 832 return; |
| 833 } | 833 } |
| 834 if (pGroup->GetString(FX_BSTRC("S")) != FX_BSTRC("Transparency")) { | 834 if (pGroup->GetStringAt("S") != "Transparency") { |
| 835 return; | 835 return; |
| 836 } | 836 } |
| 837 m_Transparency |= PDFTRANS_GROUP; | 837 m_Transparency |= PDFTRANS_GROUP; |
| 838 if (pGroup->GetInteger(FX_BSTRC("I"))) { | 838 if (pGroup->GetInteger(FX_BSTRC("I"))) { |
| 839 m_Transparency |= PDFTRANS_ISOLATED; | 839 m_Transparency |= PDFTRANS_ISOLATED; |
| 840 } | 840 } |
| 841 if (pGroup->GetInteger(FX_BSTRC("K"))) { | 841 if (pGroup->GetInteger(FX_BSTRC("K"))) { |
| 842 m_Transparency |= PDFTRANS_KNOCKOUT; | 842 m_Transparency |= PDFTRANS_KNOCKOUT; |
| 843 } | 843 } |
| 844 } | 844 } |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1069 matrix = m_PageMatrix; | 1069 matrix = m_PageMatrix; |
| 1070 matrix.Concat(display_matrix); | 1070 matrix.Concat(display_matrix); |
| 1071 } | 1071 } |
| 1072 CPDF_ParseOptions::CPDF_ParseOptions() | 1072 CPDF_ParseOptions::CPDF_ParseOptions() |
| 1073 { | 1073 { |
| 1074 m_bTextOnly = FALSE; | 1074 m_bTextOnly = FALSE; |
| 1075 m_bMarkedContent = TRUE; | 1075 m_bMarkedContent = TRUE; |
| 1076 m_bSeparateForm = TRUE; | 1076 m_bSeparateForm = TRUE; |
| 1077 m_bDecodeInlineImage = FALSE; | 1077 m_bDecodeInlineImage = FALSE; |
| 1078 } | 1078 } |
| OLD | NEW |