You need to choose a namespace for your application. The purpose of the namespace is to separate your UUIDs from everyone else's.
One possibility would be to declare two different namespaces, one for document IDs and one for instance IDs. Then use the appropriate namespace for the ID you want to generate. The important point is that the IDs should be different for different objects.
On a side note, the quotes in "$PDFpath" serve no purpose and should probably be removed. $PDFpath is already a string.
In reply to Re^3: How to generate UUID for DocumentID and InstanceID
by gwadej
in thread How to generate UUID for DocumentID and InstanceID
by srikrishnan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |