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

Printing text field properties - ver 6.0 Professional

vwilliams
Registered: Feb 6 2008
Posts: 35
Answered

I hear the experts can be found on this site and I'm hoping someone can help me. That being said...

I have created a form in Front Pg, printed it to a PDF and added text boxes, drop down lists, etc. in the PDF. Does anyone know how to print the text fields properties on the PDF form, e.g. text field name, field limit size? I'm using ver 6.0 Professional but I can't find a way to print these. I can print the form, the field's box but that's all I see is the box and any comments I add but that's it.

Thank you for any help,
Valerie

My Product Information:
Acrobat Pro 6.0, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
How much real estate do you have on the form.

You can use the report object to print a report. See Building PDF Reports with JavaScript by Thom Parker, http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/building_reports/ , for a sample form and script.

George Kaiser

vwilliams
Registered: Feb 6 2008
Posts: 35
G,
Some forms I have more space than others but based on this example it doesn't really seem to matter. It does show me what I was looking for though.

I'll look at the link/examples you sent. Who knew I would have to create JS for this. ;-} I'll let you know if I get this to work or not.

Thank you much,
Valerie
vwilliams
Registered: Feb 6 2008
Posts: 35
I used the script "G" directed me to and that worked just fine. I wanted to modify it so the page prints and then all of the fields on that page but my nested loop isn't working. It will print Page 1 but then it prints every field not just the fields that appear on that page. Does anyone know what's wrong? I'm sure it's something minor. I added the modified code below.

// Report is created in a wide format with the default margin
var oReport = new Report([0,659, 459, 0]);

// Set up Report Title
oReport.style = "NoteTitle";
oReport.size = 2.5;
oReport.writeText("Form Field Report for:");
oReport.indent();
oReport.writeText(this.documentFileName);
oReport.outdent();
oReport.divide();

// Get the page Numbers
var Labels = this.getPageLabel(0);
for (var i=1; i
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You code puts the information into the report object, but you failed to open the report object. You need to add the last 2 lines of code you did not copy:

// Open report into a PDF
oReport.open("Form Field Report");

// or to add a title and subject to the pdf meta data
var oRep = oReport.open("myreport.pdf");
oRep.info.Title = "Form Field Report for - " + this.documentFileName;
oRep.info.Subject = "Form Field Report";

George Kaiser

vwilliams
Registered: Feb 6 2008
Posts: 35
G,
Although I have programmed in the past I haven't in Adobe and w/ JS. This is new to me. What I want though is to be able to list pg 1 and all of the objects that appear on that page, then pg 2 and all if it's objects and so on. Right now I was able to add pg 1 but it then just lists all of the objects. It doesn't loop through the pages correctly. I'm not sure what I'm missing.
I also did't really notice any difference in adding the new lines of code you provided either. What should I have seen?

Thanks,
Valerie