Bluebeam Revu => Revu General Topics => Topic started by: mpfammatter on March 28, 2022, 10:15:49 AM

Title: Access to document filename or path in custom dynamic stamp
Post by: mpfammatter on March 28, 2022, 10:15:49 AM
I'm trying to get the filename of the host document with placing a custom dynamic stamp in Bluebeam Revu CAD 20. I have attempted to use the "Doc.documentFileName" and "Doc.path" properties as detailed in the "Javascript for Acrobat API Reference" (https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsapiref.pdf?msclkid=c008ca5dae9611ec866f32441364c818 (https://opensource.adobe.com/dc-acrobat-sdk-docs/acrobatsdk/pdfs/acrobatsdk_jsapiref.pdf?msclkid=c008ca5dae9611ec866f32441364c818)) and in the unoffical list of API commands I found in a stackoverflow question (https://stackoverflow.com/questions/51818834/javascript-library-with-bluebeam (https://stackoverflow.com/questions/51818834/javascript-library-with-bluebeam)). Unfortunately when these properties are included, Revu does not run the calculated field when they are included.

Please let me know if it is possible to access the host document filename and if there is better documentation of the Bluebeam javascript API. I have reviewed the Bluebeam Revu Script Reference and was unable to find any mention of how to access document properties.