blob: e10f3825afcce3fc30dc2679204e72be2899f20d [file] [log] [blame]
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07001// Copyright 2014 PDFium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
Lei Zhanga6d9f0e2015-06-13 00:48:38 -07004
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -07005// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
Lei Zhangb4e7f302015-11-06 15:52:32 -08007#include "public/fpdf_edit.h"
8
Dan Sinclairaa403d32016-03-15 14:57:22 -04009#include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
10#include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
11#include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
12#include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
13#include "core/include/fpdfapi/fpdf_page.h"
Tom Sepez40e9ff32015-11-30 12:39:54 -080014#include "fpdfsdk/include/fsdk_define.h"
15#include "public/fpdf_formfill.h"
Tom Sepez2398d892016-02-17 16:46:26 -080016#include "third_party/base/stl_util.h"
Tom Sepez40e9ff32015-11-30 12:39:54 -080017
Tom Sepez51da0932015-11-25 16:05:49 -080018#ifdef PDF_ENABLE_XFA
Lei Zhang875b9c92016-01-08 13:51:10 -080019#include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h"
20#include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
21#include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h"
Tom Sepez40e9ff32015-11-30 12:39:54 -080022#endif // PDF_ENABLE_XFA
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070023
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070024#if _FX_OS_ == _FX_ANDROID_
25#include "time.h"
26#else
27#include <ctime>
28#endif
29
Nico Weber9d8ec5a2015-08-04 13:00:21 -070030DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument() {
Tom Sepezae51c812015-08-05 12:34:06 -070031 CPDF_Document* pDoc = new CPDF_Document;
Nico Weber9d8ec5a2015-08-04 13:00:21 -070032 pDoc->CreateNewDoc();
33 time_t currentTime;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070034
Nico Weber9d8ec5a2015-08-04 13:00:21 -070035 CFX_ByteString DateStr;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070036
Nico Weber9d8ec5a2015-08-04 13:00:21 -070037 if (FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS)) {
38 if (-1 != time(&currentTime)) {
39 tm* pTM = localtime(&currentTime);
40 if (pTM) {
41 DateStr.Format("D:%04d%02d%02d%02d%02d%02d", pTM->tm_year + 1900,
42 pTM->tm_mon + 1, pTM->tm_mday, pTM->tm_hour, pTM->tm_min,
43 pTM->tm_sec);
44 }
45 }
46 }
Tom Sepezbdeeb8a2015-05-27 12:25:00 -070047
Nico Weber9d8ec5a2015-08-04 13:00:21 -070048 CPDF_Dictionary* pInfoDict = NULL;
49 pInfoDict = pDoc->GetInfo();
50 if (pInfoDict) {
51 if (FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS))
Lei Zhang4880d1a2015-12-18 17:05:11 -080052 pInfoDict->SetAt("CreationDate", new CPDF_String(DateStr, FALSE));
Tom Sepezae51c812015-08-05 12:34:06 -070053 pInfoDict->SetAt("Creator", new CPDF_String(L"PDFium"));
Nico Weber9d8ec5a2015-08-04 13:00:21 -070054 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070055
Tom Sepezbf59a072015-10-21 14:07:23 -070056 return FPDFDocumentFromCPDFDocument(pDoc);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070057}
58
Nico Weber9d8ec5a2015-08-04 13:00:21 -070059DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index) {
Tom Sepez471a1032015-10-15 16:17:18 -070060 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
61 if (!pDoc || page_index < 0 || page_index >= pDoc->GetPageCount())
Nico Weber9d8ec5a2015-08-04 13:00:21 -070062 return;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070063
Nico Weber9d8ec5a2015-08-04 13:00:21 -070064 pDoc->DeletePage(page_index);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070065}
66
Nico Weber9d8ec5a2015-08-04 13:00:21 -070067DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document,
68 int page_index,
69 double width,
70 double height) {
Tom Sepez471a1032015-10-15 16:17:18 -070071 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
72 if (!pDoc)
73 return nullptr;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070074
Nico Weber9d8ec5a2015-08-04 13:00:21 -070075 if (page_index < 0)
76 page_index = 0;
77 if (pDoc->GetPageCount() < page_index)
78 page_index = pDoc->GetPageCount();
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070079
Nico Weber9d8ec5a2015-08-04 13:00:21 -070080 CPDF_Dictionary* pPageDict = pDoc->CreateNewPage(page_index);
81 if (!pPageDict)
82 return NULL;
Tom Sepezae51c812015-08-05 12:34:06 -070083 CPDF_Array* pMediaBoxArray = new CPDF_Array;
84 pMediaBoxArray->Add(new CPDF_Number(0));
85 pMediaBoxArray->Add(new CPDF_Number(0));
86 pMediaBoxArray->Add(new CPDF_Number(FX_FLOAT(width)));
87 pMediaBoxArray->Add(new CPDF_Number(FX_FLOAT(height)));
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070088
Nico Weber9d8ec5a2015-08-04 13:00:21 -070089 pPageDict->SetAt("MediaBox", pMediaBoxArray);
Tom Sepezae51c812015-08-05 12:34:06 -070090 pPageDict->SetAt("Rotate", new CPDF_Number(0));
91 pPageDict->SetAt("Resources", new CPDF_Dictionary);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070092
Tom Sepez40e9ff32015-11-30 12:39:54 -080093#ifdef PDF_ENABLE_XFA
Nico Weber9d8ec5a2015-08-04 13:00:21 -070094 CPDFXFA_Page* pPage =
Tom Sepezae51c812015-08-05 12:34:06 -070095 new CPDFXFA_Page((CPDFXFA_Document*)document, page_index);
Nico Weber9d8ec5a2015-08-04 13:00:21 -070096 pPage->LoadPDFPage(pPageDict);
Tom Sepez40e9ff32015-11-30 12:39:54 -080097#else // PDF_ENABLE_XFA
98 CPDF_Page* pPage = new CPDF_Page;
99 pPage->Load(pDoc, pPageDict);
Tom Sepezb5b2a912016-01-21 11:04:37 -0800100 pPage->ParseContent(nullptr);
Tom Sepez40e9ff32015-11-30 12:39:54 -0800101#endif // PDF_ENABLE_XFA
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700102
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700103 return pPage;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700104}
105
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700106DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700107 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700108 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
109 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
110 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
111 "Page")) {
112 return -1;
113 }
114 CPDF_Dictionary* pDict = pPage->m_pFormDict;
Lei Zhang997de612015-11-04 18:17:53 -0800115 if (!pDict)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700116 return -1;
Lei Zhang997de612015-11-04 18:17:53 -0800117
118 while (pDict) {
119 if (pDict->KeyExist("Rotate")) {
120 CPDF_Object* pRotateObj = pDict->GetElement("Rotate")->GetDirect();
121 return pRotateObj ? pRotateObj->GetInteger() / 90 : 0;
122 }
123 if (!pDict->KeyExist("Parent"))
124 break;
125
126 pDict = ToDictionary(pDict->GetElement("Parent")->GetDirect());
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700127 }
Lei Zhanga6d9f0e2015-06-13 00:48:38 -0700128
Lei Zhang997de612015-11-04 18:17:53 -0800129 return 0;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700130}
131
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700132DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page,
133 FPDF_PAGEOBJECT page_obj) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700134 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700135 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
136 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
137 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
138 "Page")) {
139 return;
140 }
141 CPDF_PageObject* pPageObj = (CPDF_PageObject*)page_obj;
Lei Zhang997de612015-11-04 18:17:53 -0800142 if (!pPageObj)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700143 return;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700144
Tom Sepez2398d892016-02-17 16:46:26 -0800145 pPage->GetPageObjectList()->push_back(
146 std::unique_ptr<CPDF_PageObject>(pPageObj));
147
Wei Li7cf13c92016-02-19 11:53:03 -0800148 switch (pPageObj->GetType()) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700149 case FPDF_PAGEOBJ_PATH: {
Wei Li7cf13c92016-02-19 11:53:03 -0800150 CPDF_PathObject* pPathObj = pPageObj->AsPath();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700151 pPathObj->CalcBoundingBox();
152 break;
153 }
154 case FPDF_PAGEOBJ_TEXT: {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700155 break;
156 }
157 case FPDF_PAGEOBJ_IMAGE: {
Wei Li7cf13c92016-02-19 11:53:03 -0800158 CPDF_ImageObject* pImageObj = pPageObj->AsImage();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700159 pImageObj->CalcBoundingBox();
160 break;
161 }
162 case FPDF_PAGEOBJ_SHADING: {
Wei Li7cf13c92016-02-19 11:53:03 -0800163 CPDF_ShadingObject* pShadingObj = pPageObj->AsShading();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700164 pShadingObj->CalcBoundingBox();
165 break;
166 }
167 case FPDF_PAGEOBJ_FORM: {
Wei Li7cf13c92016-02-19 11:53:03 -0800168 CPDF_FormObject* pFormObj = pPageObj->AsForm();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700169 pFormObj->CalcBoundingBox();
170 break;
171 }
172 default:
173 break;
174 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700175}
176
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700177DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page) {
Tom Sepezbf59a072015-10-21 14:07:23 -0700178 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700179 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
180 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
181 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
182 "Page")) {
183 return -1;
184 }
Tom Sepez2398d892016-02-17 16:46:26 -0800185 return pdfium::CollectionSize<int>(*pPage->GetPageObjectList());
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700186}
187
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700188DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page,
189 int index) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700190 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700191 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
192 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
193 "Page")) {
Tom Sepez2398d892016-02-17 16:46:26 -0800194 return nullptr;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700195 }
Tom Sepez2398d892016-02-17 16:46:26 -0800196 return pPage->GetPageObjectList()->GetPageObjectByIndex(index);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700197}
198
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700199DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700200 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
201 return pPage && pPage->BackgroundAlphaNeeded();
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700202}
203
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700204DLLEXPORT FPDF_BOOL STDCALL
205FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject) {
206 if (!pageObject)
207 return FALSE;
208 CPDF_PageObject* pPageObj = (CPDF_PageObject*)pageObject;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700209
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700210 const CPDF_GeneralStateData* pGeneralState = pPageObj->m_GeneralState;
211 int blend_type =
212 pGeneralState ? pGeneralState->m_BlendType : FXDIB_BLEND_NORMAL;
213 if (blend_type != FXDIB_BLEND_NORMAL)
214 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700215
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700216 CPDF_Dictionary* pSMaskDict =
Dan Sinclairf1251c12015-10-20 16:24:45 -0400217 pGeneralState ? ToDictionary(pGeneralState->m_pSoftMask) : NULL;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700218 if (pSMaskDict)
219 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700220
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700221 if (pGeneralState && pGeneralState->m_FillAlpha != 1.0f)
222 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700223
Wei Li7cf13c92016-02-19 11:53:03 -0800224 if (pPageObj->IsPath()) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700225 if (pGeneralState && pGeneralState->m_StrokeAlpha != 1.0f)
226 return TRUE;
227 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700228
Wei Li7cf13c92016-02-19 11:53:03 -0800229 if (pPageObj->IsForm()) {
230 CPDF_FormObject* pFormObj = pPageObj->AsForm();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700231 if (pFormObj->m_pForm &&
232 (pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED))
233 return TRUE;
234 if (pFormObj->m_pForm &&
235 (!(pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED) &&
236 (pFormObj->m_pForm->m_Transparency & PDFTRANS_GROUP)))
237 return TRUE;
238 }
239 return FALSE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700240}
241
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700242DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700243 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700244 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
245 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
246 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
247 "Page")) {
248 return FALSE;
249 }
Tom Sepeze19e06e2016-01-21 10:49:56 -0800250 CPDF_PageContentGenerator CG(pPage);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700251 CG.GenerateContent();
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700252
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700253 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700254}
255
256DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object,
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700257 double a,
258 double b,
259 double c,
260 double d,
261 double e,
262 double f) {
263 CPDF_PageObject* pPageObj = (CPDF_PageObject*)page_object;
Lei Zhang997de612015-11-04 18:17:53 -0800264 if (!pPageObj)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700265 return;
Lei Zhangcb78ef52015-10-02 10:10:49 -0700266
Tom Sepez60d909e2015-12-10 15:34:55 -0800267 CFX_Matrix matrix((FX_FLOAT)a, (FX_FLOAT)b, (FX_FLOAT)c, (FX_FLOAT)d,
268 (FX_FLOAT)e, (FX_FLOAT)f);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700269 pPageObj->Transform(matrix);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700270}
271DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page,
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700272 double a,
273 double b,
274 double c,
275 double d,
276 double e,
277 double f) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700278 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700279 if (!pPage)
280 return;
281 CPDF_AnnotList AnnotList(pPage);
Lei Zhang1b700c32015-10-30 23:55:35 -0700282 for (size_t i = 0; i < AnnotList.Count(); ++i) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700283 CPDF_Annot* pAnnot = AnnotList.GetAt(i);
284 // transformAnnots Rectangle
Tom Sepez281a9ea2016-02-26 14:24:28 -0800285 CFX_FloatRect rect;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700286 pAnnot->GetRect(rect);
Tom Sepez60d909e2015-12-10 15:34:55 -0800287 CFX_Matrix matrix((FX_FLOAT)a, (FX_FLOAT)b, (FX_FLOAT)c, (FX_FLOAT)d,
288 (FX_FLOAT)e, (FX_FLOAT)f);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700289 rect.Transform(&matrix);
290 CPDF_Array* pRectArray = NULL;
Wei Li9b761132016-01-29 15:44:20 -0800291 pRectArray = pAnnot->GetAnnotDict()->GetArrayBy("Rect");
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700292 if (!pRectArray)
Lei Zhang4880d1a2015-12-18 17:05:11 -0800293 pRectArray = new CPDF_Array;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700294 pRectArray->SetAt(0, new CPDF_Number(rect.left));
295 pRectArray->SetAt(1, new CPDF_Number(rect.bottom));
296 pRectArray->SetAt(2, new CPDF_Number(rect.right));
297 pRectArray->SetAt(3, new CPDF_Number(rect.top));
298 pAnnot->GetAnnotDict()->SetAt("Rect", pRectArray);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700299
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700300 // Transform AP's rectangle
301 // To Do
302 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700303}
Bo Xu394010d2014-06-12 13:41:50 -0700304
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700305DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700306 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700307 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
308 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
309 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
310 "Page")) {
311 return;
312 }
313 CPDF_Dictionary* pDict = pPage->m_pFormDict;
314 rotate %= 4;
Bo Xu394010d2014-06-12 13:41:50 -0700315
Tom Sepezae51c812015-08-05 12:34:06 -0700316 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90));
Nico Weber0ce77e32014-07-16 13:19:08 -0700317}