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

about Barcode in PDF doc

fu_huai
Registered: Jun 27 2008
Posts: 6
Answered

I am a new guy for PDF doc. Now I have a business request, but I don't know how to answer it.

I want to create an editable PDF document, which has FIRST NAME, LAST NAME and Date of Birth fields. And of course, these three fields are editable. There is another field, barcode, generating based on whtat you type in those three fields.

Is it possible to create this kind of PDF doc?

Thanks,
Joe

AlScott
Registered: Nov 2 2007
Posts: 123
Hello Joe,
Yes you can. Now I'm assuming you're doing this with Acrobat, or are you using LiveCycle?
So let's work with Acrobat for the moment.
1) Start with a blank page
2) In the EDIT mode add the text fields you want, so we have in your case, FIRST NAME, LASTNAME, and BIRTH DATE.
3) Now - you'll notice an icon on the toolbar for Barcode.
4) Select this and add it to your document, just like you added the text fields.

You might get a couple of dialog boxes pop up re testing/size etc. but you should be ok just to click OK.

5) So now we have a BARCODE on the document.
6) Now let's test it.
7) Select PREVIEW from the toolbar.
8) Type in some info into the FIRST NAME, LAST NAME, and BIRTH DATE fields.
9) As you move from one field to another you should see the Barcode change.

I'm assuming this worked ok?

Perhaps you want create another field to add info to the Barcode, or maybe remove one. This is straight forward too.

Let's pop back into the EDIT mode.
1) Double click on the Barcode field.
2) Select VALUE from the Barcode Properties tab.
3) You'll see a box at the top with your 3 fields you created.
4) Select the PICK button, and a Field Section screen will appear - from here you can remove/add as you want.

Anyway - hope this helps.
Al
fu_huai
Registered: Jun 27 2008
Posts: 6
Thanks a lot.
fu_huai
Registered: Jun 27 2008
Posts: 6
Hello Al,

I have one more question related to this topic. Do you think it is possible to generate this kind of PDF file using java code? If it is, do you know which framework I should use? Does ADOBE have it?

Thanks,
Joe
AlScott
Registered: Nov 2 2007
Posts: 123
Joe,
Hi, I must admit that's an area that I'm not sure about.
Could well be worth seeing if one of the 'experts' can advise you on this one. Not sure why you want to use Java for this though.
I can recommend Ted Padova's books though. They're very good and easy to worth with. Even I could follow them!
Al
AlScott
Registered: Nov 2 2007
Posts: 123
Actually Joe,
If you go to the Value tab - of BAR CODE properties - there's an option for 'Custom Calculation Script'.
This shows the current Java script. You can edit this as you wish.
Al