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

Javascript to Print Document and Summarize Comments

srprice
Registered: Sep 19 2007
Posts: 138

I am trying to create a button that will print my document and also print a summary of comments on a second page.

I have created the Print Button using this code but it does not give me that summary of comments.

var pp = this.getPrintParams();
pp.interactive = pp.constants.interactionLevel.silent;
pp.printContent = pp.constants.printContents. docAndComments;
this.print(pp);

Is there any additional code that I can add to give me that second page of comments?

Any help would be greatly appreciated.

Sarah

My Product Information:
Acrobat Pro 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You will have to write some JavaSript to generate a separate report of the comments.

See the example under the "Report Object" "writeText method for how to create a report of the comments within a PDF.

George Kaiser