Highlighted Text - copy hightlight color to comments pane

The PDF-XChange Viewer for End Users
+++ FREE +++

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

MKC
User
Posts: 17
Joined: Fri Jul 04, 2008 7:43 pm

Highlighted Text - copy hightlight color to comments pane

Post by MKC »

Dear Tracker-Support,
thanks a lot for your wonderful software which I have been using nearly every day for the last two years (and of course have bought the Pro-Version).

I was wondering whether it is possible to include the name of the color that has been used to highlight text into the comments pane.
I am using different colors which have different "meanings" to me when reading PDFs for university. I then let PDF-X Change Viewer summarize my comments. Doing that, the information on the comment will include the date, page number, author and title (highlighted), but not the highlight color. It would be quite useful to have this information as well.

Do you think that this is possible in a future release?

Best regards,

MKC
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Highlighted Text - copy hightlight color to comments pane

Post by Stefan - PDF-XChange »

Hello MKC,

Not exactly what you are looking for but before summarizing the comments in the comments pane you can group all comments by colour and then they are written with their hexadecimal values e.g. #0000FF for red.

Maybe you could put that to some use. :)

Regards,
Stefan
MKC
User
Posts: 17
Joined: Fri Jul 04, 2008 7:43 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by MKC »

Hi Stefan,
I think your suggestion is quite useful for someone who wants to have his comments ordered by "color", but I rather like to have them ordered by "time" (--> chronologically) AND then have the used color displayed.

Best,

MKC
MKC
User
Posts: 17
Joined: Fri Jul 04, 2008 7:43 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by MKC »

Any new suggestions?

Best,

MKC
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Highlighted Text - copy hightlight color to comments pane

Post by Stefan - PDF-XChange »

Hi MCK,

I am afraid I can not think of another thing you could do to achieve what you want in the current realization and there is also no direct command to do so.

I will now get in touch with the development team to find out if there are any plans to improve this aspect of our Viewer for ver3.
We will answer here if there are any news.

Regards,
Stefan
MKC
User
Posts: 17
Joined: Fri Jul 04, 2008 7:43 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by MKC »

Thanks a lot!
User avatar
John - Tracker Supp
Site Admin
Posts: 5225
Joined: Tue Jun 29, 2004 10:34 am

Re: Highlighted Text - copy hightlight color to comments pane

Post by John - Tracker Supp »

;)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by Ivan - Tracker Software »

Into the last build of the viewer, you set different subjects to different styles of comments (default subject for highlight tool is "Highlight"). Because subject is included into summarize, you can use this feature for your task.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
MKC
User
Posts: 17
Joined: Fri Jul 04, 2008 7:43 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by MKC »

Hi Ivan,
thanks for your response.
I am afraid that - at least if i got you corectly - this function won't help me.

I want to be able to have a distinction between different colors of the highlight tool, and not between, let's say, "highlight" and "typewriter". So renaming "highlight" would not help me much, right?

In the comments-summary I would need information such as "highlight yellow", "highlight red", and so forth.

Please correct me if I got your idea wrong.

Cheers!
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2476
Joined: Thu Jun 30, 2005 4:11 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by Vasyl - PDF-XChange »

Hi, MKC.

For your situation, you may use either of two methods.

Method A:
1. Go to "Menu/Comments/Show Comments Styles Palette"
2. Choose the "Highlight" item in left pane.
3. Create some new highlight-comment styles by using the "Clone" operation.
4. Set unique color for each new style.
5. Setup individual subjects for each new style by using the "Edit Subject..." operation.
For example for new yellow highlight comment in the "Edit Initial Subject..." dialog you may choose
the "Use Custom Subject" and enter any text below such as "My Highlight Yellow".
Each of your new comment styles will be stored and can be used for the creation of new comments in the future.

Method B:
1. Add your new highlight-comments on pages(with different colors) by using Highlight Text Tool.
2. Press key-combination Ctrl+J(the Java-Script console will be displayed).
3. Enter the script-text:

Code: Select all

var annots = this.getAnnots();
for (i = 0; i < annots.length; i++)
{
    var a = annots[i];
    console.println(a.type);
    if (a.type == "Highlight")
    {
	console.println(a.strokeColor);
	if (color.equal(a.strokeColor, color.red))
	        a.subject = "Highlight Red";
	else if (color.equal(a.strokeColor, color.yellow))
		a.subject = "Highlight Yellow";
    };
}
and press the "Run" button on the console's toolbar.

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
MKC
User
Posts: 17
Joined: Fri Jul 04, 2008 7:43 pm

Re: Highlighted Text - copy hightlight color to comments pane

Post by MKC »

Dear Vasyl,
thanks a lot!!

I will try that in the next days and come back to you!

Have a nice weekend!

Best,

MKC
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Highlighted Text - copy hightlight color to comments pane

Post by Stefan - PDF-XChange »

Thanks MCK,

We look forward to your comments after testing.

Regards,
Stefan