Copy link to clipboard
Copied
Hi there,
Im stucked on indesign when i try to put on pdf template one unique ID or date and time (07JMAY172141) like as used on forms, example above:
It is possible to do this, when everytime i open a pdf template saved on my computer? Or i need to add some anothers methods to can do that?
Best Regards,
Will
This (old) tutorial is always OK, but it should logically be followed by this one: Unique ID on a PDF Form
Copy link to clipboard
Copied
You can use adobe acrobat to created form spaces within the document, is that what you want a template with a form space in it so you can type what you need?
Copy link to clipboard
Copied
Is like that is, but automatically. In this way:
1- When i open pdf template, on the space very next to"Guia nº" automatically fill current date and time in format like i said above (DDMMMYYHHmm).
2- After that, when i save the pdf with another fields filled, saved pdf fill Guia nº with date and time.
3- This autofill It's supposed to be "auto" in everytime i open the pdf to save with data.
Sorry if i cant be more specific in my explain of what i really want.
Copy link to clipboard
Copied
Hi
You can easily do that using text variables.
Create a custom text variable based on Output Date.
For differences between date formats please read this Adobe explanation:
Creation Date inserts the date or time the document is first saved; Modification Date inserts the date or time the document was last saved to disk; Output Date inserts the date or time the document starts a print job, exports to PDF, or packages the document.
(or see Create and edit text variables in InDesign)
ddMMMMyyhhmm is the format you will need I guess.
Insert and apply capitalization. See example:
Copy link to clipboard
Copied
Each PDF file already have an unique ID.
If you want to display this number, or another, automaticaly in a text field you must use Acrobat Pro and JavaScript.
Copy link to clipboard
Copied
Can you be more specific about javascript code or method to do what i want?
Copy link to clipboard
Copied
What exactly is your workflow?
Do you use an Indesign template where you want to place an automatic "ID" based on date and time each time you export to PDF?
In this case, my previous answer should do the trick.
Or does your "ID" have to be generated in Acrobat?
I'm a bit confused here...
Copy link to clipboard
Copied
"Or does your "ID" have to be generated in Acrobat?" <- Thats it!
Copy link to clipboard
Copied
OK... I misunderstood at first...
So, maybe you should have posted your question in the Acrobat forum instead of Indesign ^^
Anyway, just like JR said, you must use javascript in Acrobat.
Here's a link where everything is well explained:
Adobe Acrobat 9 Pro: PDF Forms: Inserting an Automatic Date Field, UWEC
Hope that helps
Copy link to clipboard
Copied
This (old) tutorial is always OK, but it should logically be followed by this one: Unique ID on a PDF Form