From 33c4cdb4efbacb73151c982549151ea4e545eff8 Mon Sep 17 00:00:00 2001 From: tonikitoo Date: Mon, 8 Aug 2016 10:52:51 -0700 Subject: Add support to Document::URL property getter. As per the PDF specification at [1] " This property specifies the document's URL. ". IE/Acrobat supports it, and getting it implemented would be one step forward in order to support Acrobat JS script as the one in [2]. [1] http://partners.adobe.com/public/developer/en/acrobat/sdk/5186AcroJS.pdf [2] https://bugs.chromium.org/p/pdfium/issues/detail?id=492 BUG=492 Review-Url: https://codereview.chromium.org/2219183002 --- fpdfsdk/javascript/Document.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fpdfsdk/javascript/Document.h') diff --git a/fpdfsdk/javascript/Document.h b/fpdfsdk/javascript/Document.h index 7e5d6dfe8a..ae2d6c1afe 100644 --- a/fpdfsdk/javascript/Document.h +++ b/fpdfsdk/javascript/Document.h @@ -259,6 +259,7 @@ class Document : public CJS_EmbedObj { const std::vector& params, CJS_Value& vRet, CFX_WideString& sError); + FX_BOOL URL(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError); void AttachDoc(CPDFSDK_Document* pDoc); CPDFSDK_Document* GetReaderDoc(); @@ -324,6 +325,7 @@ class CJS_Document : public CJS_Object { JS_STATIC_PROP(producer, Document); JS_STATIC_PROP(subject, Document); JS_STATIC_PROP(title, Document); + JS_STATIC_PROP(URL, Document); JS_STATIC_PROP(zoom, Document); JS_STATIC_PROP(zoomType, Document); -- cgit v1.2.3