Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Get Folder Name

New Here ,
Feb 19, 2016 Feb 19, 2016

I have an open Acrobat file. I can link to it and 'get' various parameters:

Set AVDocument = AcroApp.GetAVDoc(1)

Set PDDocument = AVDocument.GetPDDoc

GetOpenPDFTitle = AVDocument.GetTitle

GetOpenPDFName = PDDocument.GetFileName

What I want to obtain is the folder in which the PDDocument is located. I was hoping for something simple like

GetPDFFolder = PDDocument.GetFolder  or ".GetPath" or "GetFullName" or the like, but none are available.

How do I determine the name of the Path or Folder of the active PDF file?

TOPICS
Acrobat SDK and JavaScript
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Feb 19, 2016 Feb 19, 2016

Hi,

you could connect to JsObject (.. pddoc.GetJSObject) and then use the doc path statement from js.

Path

the device-independent path of the document, for example:

/c/Program Files/Adobe/Acrobat 5.0/Help/AcroHelp.pdf

Keep in mind that via IAC you can use nearly all js statements.

HTH, Reinhard

Translate
Engaged ,
Feb 19, 2016 Feb 19, 2016

Hi,

you could connect to JsObject (.. pddoc.GetJSObject) and then use the doc path statement from js.

Path

the device-independent path of the document, for example:

/c/Program Files/Adobe/Acrobat 5.0/Help/AcroHelp.pdf

Keep in mind that via IAC you can use nearly all js statements.

HTH, Reinhard

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 20, 2016 Feb 20, 2016
LATEST

Thanks. The code I ultimately used was this:

Set jso = PDDocument.GetJSObject

PDFPath = jso.Path

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines