These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to generate the folder name in WebDAV server using MD5 hash.

anoopmohan
Registered: Feb 11 2010
Posts: 13

I stored the PDF review comments and stamps as a FDF file in WebDAV server. In WebDAV server, it will automatically creates one folder with a name in encrypted format using MD5 hash algorithm. I tried to regenerate the folder name manually using MD5 hash. But it is generating 32 characters. But the actual folder name only having 22 characters. Can anyone tell, what format they are using to generate 22 characters ? Any helps will be greatly appreciated....

My Product Information:
Acrobat Pro 7.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You many have already found this out, but "Collab.hashString()" returns 22 characters. However Acrobat does not necessarily use just the file name or path to generate the path. It could for example use the current time. The idea is to generate unique names, so adding in the time and date is reasonable. If this is true then you will never be able to predict folder names. It's likely that Acrobat knows where to save comments because this information is stored in the PDF itself.

Muchof the Comment and Review functionality was written in JavaScript. You may be able to get a better handle on what you're looking for by examining this code. If you have Acrobat Pro 6.0, or event Reader 6, you'll find this code in the Acrobat JavaScript folder.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script