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

Printing highlighted text

kweimer
Registered: Oct 26 2007
Posts: 21

Hello All! I don't think I sufficiently explained my query earlier, so let me try and restate what I'm looking for.

Example (from pre 7.0) I could take a six page pdf and make one highlight on each page... total 6 highlighted sentences in the doc. The printout would be a single page with 6 sentences, each one headed with a bit of metadata, page, date, ect.

But 7.0 Pro wants to print out 6 pages with a single sentence on each page. A huge waste of paper, particulary if I'm only highlighting a word or two on a page. And if I'm reviewing a 200 page doc ...

So, is there a way I can get all six sentences on one page and save the environment at the same time? tks...

My Product Information:
Acrobat Pro 7.0.9, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Not an easy task. You will have to use JavaScript to create the report but since you want the text uncer the hightlight you will not only need to find the highlights, easy enough using the anntoation type, but you will will have to use JavaScript to retrieve each word and see if it in within the quads for the highlighted text.

George Kaiser

kweimer
Registered: Oct 26 2007
Posts: 21
Whew! and double whew! Learning Java wasn't on my ToDo list... mmmmm... I think I'll try putting my 7.1 highlighted pdf files on a usb drive and plugging it into a spare laptop that has Acrobat 5.0 installed and printing from there.

Its a bit of a kludge, and I suppose there could be backward compatibility issues, but time is short and it just might work. Meantime I'm sending a copy of this thread to the U.S. Dept. of Forestry ;-)

... thanks again.
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Aggregating comments to support reduced paper use for hardcopy reports.

Highlights are just another "comment/markup" variation, so...

Create PDF of Comment Summary.
The resultant report's contents reflect a tabular layout.
In effect, a table. Use the Table Select tool to save each page's
"table" to a *.csv file.
Some minor manipulations, through your spreadsheet application,
will yield a file with the comments aggregated.
The resultant file, when printed to hardcopy, will have a reduced page count.

Be well...

kweimer
Registered: Oct 26 2007
Posts: 21
Seems ok for short docs, but in longer docs, going page by page, if I understand your procedure, and copying each time to a *.cvs file has the same effect as a review of each page would. Keeping in mind that we're talking about long, long 100+ page docs, My test doc, for example has 152 highlights in a 304 pp. doc. I'm not seeing where any time or effort is saved. On the other hand, I can see where some paper is saved, and that's always a good thing. Paper... time... paper... time, what to do? What to do???
daka630
Expert
Registered: Mar 1 2007
Posts: 1420
Quote:
Paper... time... paper... time, what to do? What to do???
Appears the you have a "must use paper" scenerio...

You are correct about the *.csv files. The time invested yields the shorter, paper saving, hard copy report. While more time is used, do not overlook the significant "hidden cost" savings realized by less paper reproduction and less handling by someone. The hidden costs add up dramatically if reproducing larger volumes of paper. University sites often identify the real cost of reproduction and handling (as does a USN excel file out there) if you want hard numbers.

With that said, a change to usage of the PDF comments file would, long term,
solve both "paper" and "time" issues.

Be well...

Be well...

jim47
Registered: Apr 27 2008
Posts: 32
This problem has been nagging me forever as well!! Not particualrly good product design on Adobe's part. Any fixes to this?

Thanks
JIM




kweimer wrote:
Hello All! I don't think I sufficiently explained my query earlier, so let me try and restate what I'm looking for.Example (from pre 7.0) I could take a six page pdf and make one highlight on each page... total 6 highlighted sentences in the doc. The printout would be a single page with 6 sentences, each one headed with a bit of metadata, page, date, ect.

But 7.0 Pro wants to print out 6 pages with a single sentence on each page. A huge waste of paper, particulary if I'm only highlighting a word or two on a page. And if I'm reviewing a 200 page doc ...

So, is there a way I can get all six sentences on one page and save the environment at the same time? tks...
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Write your own report using JavaScript. [url=http://www.adobe.com/devnet/acrobat/javascript.php]Acrobat JavaScript Reference[/url]. See the example under the "writeText" method of the "Report" object.

George Kaiser

jim47
Registered: Apr 27 2008
Posts: 32
Thanks. But I cannot find what you are refering to. That webpage has copious sections.

Does anyone have any solutions to these problems other than writing custom JS? I find it hard to believe Adobe has not accounted for these report user preferences and these comment requests seem to abound on this board.....



gkaiseril wrote:
Write your own report using JavaScript. [url=http://www.adobe.com/devnet/acrobat/javascript.php]Acrobat JavaScript Reference[/url]. See the example under the "writeText" method of the "Report" object.
xaxa
Registered: May 30 2008
Posts: 1
[edited: new version, got rid of a bug, 2008-06-18, sorry...]

I had a similar problem: copying the text of all annotations in a document to the comment of the annotations in order to parse the xfdf-output into a database.
The script below (saved as folder level script) basically walks through all quads of every annotation in the document and copies whatever text lies inside the annot-quads to the annot-comment. Not exactly elegant, not exactly fast, tested on a few of my own documents but nowhere else. For me this is a one-time thing and for this it seams to work just fine. All future documents are created with the option "Copy selected text into Highlight, ..."). Have fun and post if you optimize it:

//save this in ~/Library/Acrobat User Data/8.0_x86/JavaScripts/config.js

app.addMenuItem({cName:"Copy Text to Annotation Comment", cParent:"Document", cExec:"getComments(this);"});

function getComments (doc) {
for (var p=0; p=Math.round(q[0])
&& Math.round(pq[2])<=Math.round(q[2]))
qtext += doc.getPageNthWord (p, n, false);
};
};//write qtext back to the annotation

a.contents = qtext.replace ("\n", "");

};
};
};
}
kshshell2008
Registered: Jul 8 2008
Posts: 4
Thx! for the JS work around.
Looks like it worked partially. I got 'internal error' - so the highlights in the first few pages are printed - I guess since the error occured - the rest of the pages are blanks

I have 7.0 and saved the config.js file in C:\Program Files\Adobe\Acrobat 7.0\Acrobat\Javascripts folder

Any help?
TIA,
AK
kshshell2008
Registered: Jul 8 2008
Posts: 4
Missed on pasting this error I get to see in the Javascript Console
TypeError: qs has no properties
19:Folder-Level:App:Config.js
kshshell2008
Registered: Jul 8 2008
Posts: 4
Hi,
There were some annotations(insert annotations) in the PDF Comment List that looked abnormal - took them off and the script worked like a charm!
Thanks,
AK
kweimer
Registered: Oct 26 2007
Posts: 21
Since this post took off on a road to javaland and my efforts to follow it didn't work, I'll go back to asking whether or not Acrobat 9 offers a simple, ready-made resolution, ie. in 9, can highlighted text be replicated in a report that doesn't involve a lot of trees, like vers. 4 & 5 could do?
kweimer
Registered: Oct 26 2007
Posts: 21
Hello all,

Re. the original message on this thread, I'm wondering if Adobe has changed the way highlights and comments are reported in Acrobat 8 or 9 vs. my difficulties with Acrobat 7 reporting. Tks...
lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
kweimer wrote:
Since this post took off on a road to javaland and my efforts to follow it didn't work, I'll go back to asking whether or not Acrobat 9 offers a simple, ready-made resolution, ie. in 9, can highlighted text be replicated in a report that doesn't involve a lot of trees, like vers. 4 & 5 could do?
Acrobat 9 creates Comment Summaries similar to the way Acrobat 8 does -- so a few trees are still involved. There are a few pre-configured [url=http://www.adobe.com/devnet/acrobat/pdfs/batch_sequences.pdf]batch sequences[/url] that may help you in your endeavor. There are two examples listed hat might help, Summarize Comments from Documents (I'm not sure if this creates individuals pages) and/or Write Comments to Tab/Delimited file.

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

rkcjnadobe
Registered: Jun 2 2011
Posts: 2
I am trying to print a pdf file that I have marked up using the yellow highlight tool. I have tried a variety of useless things because each time I print, the yellow hightlight that is on the screen in NOT in the printed document.
I'm using Acrobat 8.0 on an iMac with 10.6.7

Rich in Manhattan Beach
Acrobat 8
iMac with OS 10.6.7

daka630
Expert
Registered: Mar 1 2007
Posts: 1420
How to in Windows. Ought to be similar, if not the same, on the Mac.
With a PDF open in Acrobat — open the print dialog (File : Print).
Observe "Comments and Forms:" in the upper right.
A drop down menu is under this. Select "Document and Markups" which sends the PDF page content and the Comments & Markup annotations to the printer. Keep in mind that the yellow highlight annotation, if printed without color, may mask the text underneath. How much will be determined by what you set for the highlight opacity. Printing with color may mitigate this; or, reduce the opacity of the highlight.
.

Be well...

rkcjnadobe
Registered: Jun 2 2011
Posts: 2
Mac is a touch different with a "Comments and Forms" drop down menu in the middle left of the Print command window. I selected Document and Markups (as opposed to the default Document) and the document highlights printed JUST FINE! The highlights also appeared in the "Preview: Composite" window within the Print command box.
Thanks VERY MUCH.

Rich in Manhattan Beach
Acrobat 8
iMac with OS 10.6.7

kweimer
Registered: Oct 26 2007
Posts: 21
Folks, this is not about the highlighting itself. In fact, I'm not looking for the highlighting, just the text that was highlighted. In, say... Acrobat 5, I could highlight a sentence on each of 4 pages, and then print comments and get one page with 4 sentences, not highlighted sentences, just the four sentences. I know this cannot be done in 7, probably not in 8, and in 9, which I use currently, it is unavailable. But in can be done easily in 4 & 5. Ah well, there's no pleasing everyone. Thanks for the comments.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
The report generated by Acrobat includes the contents of the highlight, NOT the highlighted text underneath it.
If you want the two to be the same you have two options:
1. Check the box to include the highlighted text in the annotations BEFORE making the highlights ("Copy selected text into Highlight, Cross-Out, and Underline comment pop ups" under Edit - Preferences - Commenting).
2. If you've already created your highlights with this option disabled, you can use this script, created by me, to retroactively copy the text into the comments:
http://try67.blogspot.com/2011/04/acrobat-retroactively-copy-selected.php

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com