blob: 1345a1dbb16a90ef04b1d0bb6874f39db7714f37 [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 Sinclair455a4192016-03-16 09:48:56 -04009#include "core/fpdfapi/fpdf_edit/include/cpdf_pagecontentgenerator.h"
10#include "core/fpdfapi/fpdf_page/include/cpdf_form.h"
11#include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
Dan Sinclairaa403d32016-03-15 14:57:22 -040012#include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
13#include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
14#include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
15#include "core/fpdfapi/fpdf_parser/include/cpdf_string.h"
Tom Sepez40e9ff32015-11-30 12:39:54 -080016#include "fpdfsdk/include/fsdk_define.h"
17#include "public/fpdf_formfill.h"
Tom Sepez2398d892016-02-17 16:46:26 -080018#include "third_party/base/stl_util.h"
Tom Sepez40e9ff32015-11-30 12:39:54 -080019
Tom Sepez51da0932015-11-25 16:05:49 -080020#ifdef PDF_ENABLE_XFA
Lei Zhang875b9c92016-01-08 13:51:10 -080021#include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h"
22#include "fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h"
23#include "fpdfsdk/include/fpdfxfa/fpdfxfa_page.h"
Tom Sepez40e9ff32015-11-30 12:39:54 -080024#endif // PDF_ENABLE_XFA
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070025
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070026#if _FX_OS_ == _FX_ANDROID_
27#include "time.h"
28#else
29#include <ctime>
30#endif
31
Nico Weber9d8ec5a2015-08-04 13:00:21 -070032DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument() {
Tom Sepezae51c812015-08-05 12:34:06 -070033 CPDF_Document* pDoc = new CPDF_Document;
Nico Weber9d8ec5a2015-08-04 13:00:21 -070034 pDoc->CreateNewDoc();
35 time_t currentTime;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070036
Nico Weber9d8ec5a2015-08-04 13:00:21 -070037 CFX_ByteString DateStr;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070038
Nico Weber9d8ec5a2015-08-04 13:00:21 -070039 if (FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS)) {
40 if (-1 != time(&currentTime)) {
41 tm* pTM = localtime(&currentTime);
42 if (pTM) {
43 DateStr.Format("D:%04d%02d%02d%02d%02d%02d", pTM->tm_year + 1900,
44 pTM->tm_mon + 1, pTM->tm_mday, pTM->tm_hour, pTM->tm_min,
45 pTM->tm_sec);
46 }
47 }
48 }
Tom Sepezbdeeb8a2015-05-27 12:25:00 -070049
Nico Weber9d8ec5a2015-08-04 13:00:21 -070050 CPDF_Dictionary* pInfoDict = NULL;
51 pInfoDict = pDoc->GetInfo();
52 if (pInfoDict) {
53 if (FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS))
Lei Zhang4880d1a2015-12-18 17:05:11 -080054 pInfoDict->SetAt("CreationDate", new CPDF_String(DateStr, FALSE));
Tom Sepezae51c812015-08-05 12:34:06 -070055 pInfoDict->SetAt("Creator", new CPDF_String(L"PDFium"));
Nico Weber9d8ec5a2015-08-04 13:00:21 -070056 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070057
Tom Sepezbf59a072015-10-21 14:07:23 -070058 return FPDFDocumentFromCPDFDocument(pDoc);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070059}
60
Nico Weber9d8ec5a2015-08-04 13:00:21 -070061DLLEXPORT void STDCALL FPDFPage_Delete(FPDF_DOCUMENT document, int page_index) {
Tom Sepez744da702016-03-15 12:43:09 -070062 if (UnderlyingDocumentType* pDoc = UnderlyingFromFPDFDocument(document))
63 pDoc->DeletePage(page_index);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070064}
65
Nico Weber9d8ec5a2015-08-04 13:00:21 -070066DLLEXPORT FPDF_PAGE STDCALL FPDFPage_New(FPDF_DOCUMENT document,
67 int page_index,
68 double width,
69 double height) {
Tom Sepez471a1032015-10-15 16:17:18 -070070 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document);
71 if (!pDoc)
72 return nullptr;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070073
Nico Weber9d8ec5a2015-08-04 13:00:21 -070074 if (page_index < 0)
75 page_index = 0;
76 if (pDoc->GetPageCount() < page_index)
77 page_index = pDoc->GetPageCount();
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070078
Nico Weber9d8ec5a2015-08-04 13:00:21 -070079 CPDF_Dictionary* pPageDict = pDoc->CreateNewPage(page_index);
80 if (!pPageDict)
81 return NULL;
Tom Sepezae51c812015-08-05 12:34:06 -070082 CPDF_Array* pMediaBoxArray = new CPDF_Array;
83 pMediaBoxArray->Add(new CPDF_Number(0));
84 pMediaBoxArray->Add(new CPDF_Number(0));
85 pMediaBoxArray->Add(new CPDF_Number(FX_FLOAT(width)));
86 pMediaBoxArray->Add(new CPDF_Number(FX_FLOAT(height)));
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070087
Nico Weber9d8ec5a2015-08-04 13:00:21 -070088 pPageDict->SetAt("MediaBox", pMediaBoxArray);
Tom Sepezae51c812015-08-05 12:34:06 -070089 pPageDict->SetAt("Rotate", new CPDF_Number(0));
90 pPageDict->SetAt("Resources", new CPDF_Dictionary);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -070091
Tom Sepez40e9ff32015-11-30 12:39:54 -080092#ifdef PDF_ENABLE_XFA
Nico Weber9d8ec5a2015-08-04 13:00:21 -070093 CPDFXFA_Page* pPage =
Tom Sepezae51c812015-08-05 12:34:06 -070094 new CPDFXFA_Page((CPDFXFA_Document*)document, page_index);
Nico Weber9d8ec5a2015-08-04 13:00:21 -070095 pPage->LoadPDFPage(pPageDict);
Tom Sepez40e9ff32015-11-30 12:39:54 -080096#else // PDF_ENABLE_XFA
97 CPDF_Page* pPage = new CPDF_Page;
98 pPage->Load(pDoc, pPageDict);
Tom Sepezb5b2a912016-01-21 11:04:37 -080099 pPage->ParseContent(nullptr);
Tom Sepez40e9ff32015-11-30 12:39:54 -0800100#endif // PDF_ENABLE_XFA
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700101
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700102 return pPage;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700103}
104
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700105DLLEXPORT int STDCALL FPDFPage_GetRotation(FPDF_PAGE page) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700106 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700107 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
108 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
109 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
110 "Page")) {
111 return -1;
112 }
113 CPDF_Dictionary* pDict = pPage->m_pFormDict;
Lei Zhang997de612015-11-04 18:17:53 -0800114 if (!pDict)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700115 return -1;
Lei Zhang997de612015-11-04 18:17:53 -0800116
117 while (pDict) {
118 if (pDict->KeyExist("Rotate")) {
119 CPDF_Object* pRotateObj = pDict->GetElement("Rotate")->GetDirect();
120 return pRotateObj ? pRotateObj->GetInteger() / 90 : 0;
121 }
122 if (!pDict->KeyExist("Parent"))
123 break;
124
125 pDict = ToDictionary(pDict->GetElement("Parent")->GetDirect());
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700126 }
Lei Zhanga6d9f0e2015-06-13 00:48:38 -0700127
Lei Zhang997de612015-11-04 18:17:53 -0800128 return 0;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700129}
130
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700131DLLEXPORT void STDCALL FPDFPage_InsertObject(FPDF_PAGE page,
132 FPDF_PAGEOBJECT page_obj) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700133 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700134 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
135 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
136 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
137 "Page")) {
138 return;
139 }
140 CPDF_PageObject* pPageObj = (CPDF_PageObject*)page_obj;
Lei Zhang997de612015-11-04 18:17:53 -0800141 if (!pPageObj)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700142 return;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700143
Tom Sepez2398d892016-02-17 16:46:26 -0800144 pPage->GetPageObjectList()->push_back(
145 std::unique_ptr<CPDF_PageObject>(pPageObj));
146
Wei Li7cf13c92016-02-19 11:53:03 -0800147 switch (pPageObj->GetType()) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700148 case FPDF_PAGEOBJ_PATH: {
Wei Li7cf13c92016-02-19 11:53:03 -0800149 CPDF_PathObject* pPathObj = pPageObj->AsPath();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700150 pPathObj->CalcBoundingBox();
151 break;
152 }
153 case FPDF_PAGEOBJ_TEXT: {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700154 break;
155 }
156 case FPDF_PAGEOBJ_IMAGE: {
Wei Li7cf13c92016-02-19 11:53:03 -0800157 CPDF_ImageObject* pImageObj = pPageObj->AsImage();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700158 pImageObj->CalcBoundingBox();
159 break;
160 }
161 case FPDF_PAGEOBJ_SHADING: {
Wei Li7cf13c92016-02-19 11:53:03 -0800162 CPDF_ShadingObject* pShadingObj = pPageObj->AsShading();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700163 pShadingObj->CalcBoundingBox();
164 break;
165 }
166 case FPDF_PAGEOBJ_FORM: {
Wei Li7cf13c92016-02-19 11:53:03 -0800167 CPDF_FormObject* pFormObj = pPageObj->AsForm();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700168 pFormObj->CalcBoundingBox();
169 break;
170 }
171 default:
172 break;
173 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700174}
175
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700176DLLEXPORT int STDCALL FPDFPage_CountObject(FPDF_PAGE page) {
Tom Sepezbf59a072015-10-21 14:07:23 -0700177 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700178 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
179 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
180 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
181 "Page")) {
182 return -1;
183 }
Tom Sepez2398d892016-02-17 16:46:26 -0800184 return pdfium::CollectionSize<int>(*pPage->GetPageObjectList());
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700185}
186
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700187DLLEXPORT FPDF_PAGEOBJECT STDCALL FPDFPage_GetObject(FPDF_PAGE page,
188 int index) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700189 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700190 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
191 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
192 "Page")) {
Tom Sepez2398d892016-02-17 16:46:26 -0800193 return nullptr;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700194 }
Tom Sepez2398d892016-02-17 16:46:26 -0800195 return pPage->GetPageObjectList()->GetPageObjectByIndex(index);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700196}
197
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700198DLLEXPORT FPDF_BOOL STDCALL FPDFPage_HasTransparency(FPDF_PAGE page) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700199 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
200 return pPage && pPage->BackgroundAlphaNeeded();
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700201}
202
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700203DLLEXPORT FPDF_BOOL STDCALL
204FPDFPageObj_HasTransparency(FPDF_PAGEOBJECT pageObject) {
205 if (!pageObject)
206 return FALSE;
207 CPDF_PageObject* pPageObj = (CPDF_PageObject*)pageObject;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700208
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700209 const CPDF_GeneralStateData* pGeneralState = pPageObj->m_GeneralState;
210 int blend_type =
211 pGeneralState ? pGeneralState->m_BlendType : FXDIB_BLEND_NORMAL;
212 if (blend_type != FXDIB_BLEND_NORMAL)
213 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700214
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700215 CPDF_Dictionary* pSMaskDict =
Dan Sinclairf1251c12015-10-20 16:24:45 -0400216 pGeneralState ? ToDictionary(pGeneralState->m_pSoftMask) : NULL;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700217 if (pSMaskDict)
218 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700219
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700220 if (pGeneralState && pGeneralState->m_FillAlpha != 1.0f)
221 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700222
Wei Li7cf13c92016-02-19 11:53:03 -0800223 if (pPageObj->IsPath()) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700224 if (pGeneralState && pGeneralState->m_StrokeAlpha != 1.0f)
225 return TRUE;
226 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700227
Wei Li7cf13c92016-02-19 11:53:03 -0800228 if (pPageObj->IsForm()) {
229 CPDF_FormObject* pFormObj = pPageObj->AsForm();
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700230 if (pFormObj->m_pForm &&
231 (pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED))
232 return TRUE;
233 if (pFormObj->m_pForm &&
234 (!(pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED) &&
235 (pFormObj->m_pForm->m_Transparency & PDFTRANS_GROUP)))
236 return TRUE;
237 }
238 return FALSE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700239}
240
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700241DLLEXPORT FPDF_BOOL STDCALL FPDFPage_GenerateContent(FPDF_PAGE page) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700242 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700243 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
244 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
245 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
246 "Page")) {
247 return FALSE;
248 }
Tom Sepeze19e06e2016-01-21 10:49:56 -0800249 CPDF_PageContentGenerator CG(pPage);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700250 CG.GenerateContent();
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700251
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700252 return TRUE;
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700253}
254
255DLLEXPORT void STDCALL FPDFPageObj_Transform(FPDF_PAGEOBJECT page_object,
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700256 double a,
257 double b,
258 double c,
259 double d,
260 double e,
261 double f) {
262 CPDF_PageObject* pPageObj = (CPDF_PageObject*)page_object;
Lei Zhang997de612015-11-04 18:17:53 -0800263 if (!pPageObj)
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700264 return;
Lei Zhangcb78ef52015-10-02 10:10:49 -0700265
Tom Sepez60d909e2015-12-10 15:34:55 -0800266 CFX_Matrix matrix((FX_FLOAT)a, (FX_FLOAT)b, (FX_FLOAT)c, (FX_FLOAT)d,
267 (FX_FLOAT)e, (FX_FLOAT)f);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700268 pPageObj->Transform(matrix);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700269}
270DLLEXPORT void STDCALL FPDFPage_TransformAnnots(FPDF_PAGE page,
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700271 double a,
272 double b,
273 double c,
274 double d,
275 double e,
276 double f) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700277 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700278 if (!pPage)
279 return;
280 CPDF_AnnotList AnnotList(pPage);
Lei Zhang1b700c32015-10-30 23:55:35 -0700281 for (size_t i = 0; i < AnnotList.Count(); ++i) {
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700282 CPDF_Annot* pAnnot = AnnotList.GetAt(i);
283 // transformAnnots Rectangle
Tom Sepez281a9ea2016-02-26 14:24:28 -0800284 CFX_FloatRect rect;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700285 pAnnot->GetRect(rect);
Tom Sepez60d909e2015-12-10 15:34:55 -0800286 CFX_Matrix matrix((FX_FLOAT)a, (FX_FLOAT)b, (FX_FLOAT)c, (FX_FLOAT)d,
287 (FX_FLOAT)e, (FX_FLOAT)f);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700288 rect.Transform(&matrix);
289 CPDF_Array* pRectArray = NULL;
Wei Li9b761132016-01-29 15:44:20 -0800290 pRectArray = pAnnot->GetAnnotDict()->GetArrayBy("Rect");
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700291 if (!pRectArray)
Lei Zhang4880d1a2015-12-18 17:05:11 -0800292 pRectArray = new CPDF_Array;
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700293 pRectArray->SetAt(0, new CPDF_Number(rect.left));
294 pRectArray->SetAt(1, new CPDF_Number(rect.bottom));
295 pRectArray->SetAt(2, new CPDF_Number(rect.right));
296 pRectArray->SetAt(3, new CPDF_Number(rect.top));
297 pAnnot->GetAnnotDict()->SetAt("Rect", pRectArray);
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700298
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700299 // Transform AP's rectangle
300 // To Do
301 }
John Abd-El-Malek3f3b45c2014-05-23 17:28:10 -0700302}
Bo Xu394010d2014-06-12 13:41:50 -0700303
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700304DLLEXPORT void STDCALL FPDFPage_SetRotation(FPDF_PAGE page, int rotate) {
Tom Sepezdb0be962015-10-16 14:00:21 -0700305 CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
Nico Weber9d8ec5a2015-08-04 13:00:21 -0700306 if (!pPage || !pPage->m_pFormDict || !pPage->m_pFormDict->KeyExist("Type") ||
307 !pPage->m_pFormDict->GetElement("Type")->GetDirect() ||
308 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare(
309 "Page")) {
310 return;
311 }
312 CPDF_Dictionary* pDict = pPage->m_pFormDict;
313 rotate %= 4;
Bo Xu394010d2014-06-12 13:41:50 -0700314
Tom Sepezae51c812015-08-05 12:34:06 -0700315 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90));
Nico Weber0ce77e32014-07-16 13:19:08 -0700316}