| 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 "x:/pdf/fpdfapi5/include/fpdfapi.h" | 7 // #include "x:/pdf/fpdfapi5/include/fpdfapi.h" |
| 8 #include "../include/fsdk_define.h" | 8 #include "../include/fsdk_define.h" |
| 9 #include "../include/fpdfedit.h" | 9 #include "../include/fpdfedit.h" |
| 10 | 10 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 CPDF_Page* pPage = (CPDF_Page*)page; | 320 CPDF_Page* pPage = (CPDF_Page*)page; |
| 321 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type
") || !pPage->m_pFormDict->GetElement("Type")->GetDirect() | 321 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type
") || !pPage->m_pFormDict->GetElement("Type")->GetDirect() |
| 322 || pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetStrin
g().Compare("Page")) | 322 || pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetStrin
g().Compare("Page")) |
| 323 { | 323 { |
| 324 return; | 324 return; |
| 325 } | 325 } |
| 326 CPDF_Dictionary* pDict = pPage->m_pFormDict; | 326 CPDF_Dictionary* pDict = pPage->m_pFormDict; |
| 327 rotate %=4; | 327 rotate %=4; |
| 328 | 328 |
| 329 pDict->SetAt("Rotate", FX_NEW CPDF_Number(rotate * 90)); | 329 pDict->SetAt("Rotate", FX_NEW CPDF_Number(rotate * 90)); |
| 330 } | 330 } |
| OLD | NEW |