Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

My Preview annotations are fading

Hi,


My annotations in Preview are fading away! They look normal when I do them, but each time I open the pdf and look back they become fainter and fainter. I used to keep the file on my iDisk and I thought that might be the problem. Or maybe the loss of color was for some reason happening after I viewed the file on my iPad. But moving it to my desktop didn't help.

This is how they look fresh:

User uploaded file

Marked a couple of days ago:

User uploaded file

Then it goes like this:

User uploaded file

And in the end: (and I am 100% sure the text used to be highlighted):

User uploaded file

What's going on? And what to do with this?

Thank you for any help.

Mac OS X (10.7)

Posted on Aug 11, 2011 1:37 AM

Reply
42 replies

Mar 19, 2012 4:28 PM in response to Rimmi2003

Like a said, save the text above in the folder /usr/bin/ with the name FixHighlights.


Then run it from terminal with the command "FixHighlights" + the name of the pdf you want to fix.


I'll try a list of commands that should work, (for all commands just type the bits between the quotes, don't include the quotes):


1. Open up terminal

2. Enter command "sudo nano"

3. Enter your login password. Nano, the text editing program should open

4. Copy the text above and paste it in

5. Press ctrl+x

6. Press Y

7. Type "/usr/bin/FixHighlights" and press enter

8. Enter the command "sudo chmod +x /usr/bin/FixHighlights"

9. Now enter the command "FixHighlights", you should get the response "Wrong argument count"

10. Now you're ready to go, you just need to enter "FixHighlights" followed by a space and the name of the file you want to fix. This will be something like:
"FixHighlights Documents/yourfile.pdf"


And you're done. Hope that helps.

Mar 19, 2012 4:55 PM in response to paddytheprogrammer

paddytheprogrammer wrote:


Like a said, save the text above in the folder /usr/bin/ with the name FixHighlights.


Then run it from terminal with the command "FixHighlights" + the name of the pdf you want to fix.


I'll try a list of commands that should work, (for all commands just type the bits between the quotes, don't include the quotes):


1. Open up terminal

2. Enter command "sudo nano"

3. Enter your login password. Nano, the text editing program should open

4. Copy the text above and paste it in

5. Press ctrl+x

6. Press Y

7. Type "/usr/bin/FixHighlights" and press enter

8. Enter the command "sudo chmod +x /usr/bin/FixHighlights"

9. Now enter the command "FixHighlights", you should get the response "Wrong argument count"

10. Now you're ready to go, you just need to enter "FixHighlights" followed by a space and the name of the file you want to fix. This will be something like:
"FixHighlights Documents/yourfile.pdf"


And you're done. Hope that helps.


Thanks for the quick reply. That did the trick perfectly. I had been googling "how to create a python script on Mac" and was getting no where.


Read your other post. Got both yellow and green working. Great workaround!!! Can't believe apple still hasn't fixed this issue. After using windows for 15 years I moved to Apple 1 yr ago. I am pretty good with DOS, but have very little idea on how to work the Apple terminal program....The few times I have gotten instructions on how to fix things through it I have found it to be very powerful....I was wondering if there any good site or book out to learn the apple terminal app and its capablilites. Would be great to know. Thanks Again!

Mar 19, 2012 5:09 PM in response to Rimmi2003

It's basically a bash terminal same as you find on any UNIX system. You could try any bash tutorials for linux and they'd probably be at least 90% relevant. Here's one I found from a quick googling:


http://linuxcommand.org/learning_the_shell.php


Looks like it teaches the basics commands, cd, ls, mv, cp and so on. After that it's just learning what programs are availble on your system and how to use them.


Once you get familiar with a unix shell you'll wonder how you ever lived without it. 🙂

Mar 22, 2012 10:21 PM in response to Rimmi2003

I'm starting to think that this is by design. Apple may be trying to emulate real highlighting on paper. As the highlight ages, it gets lighter. The rationale being that one can distinguish between new and older highlights in a more natural way. I actually like it when I am referencing large documents over and over again. It looks real. Just my two cents :-)

Mar 23, 2012 4:51 AM in response to leifdog

I really dont think that it is by design. The annotations only fade after each new save. I have noticed that in very large documents that are being saved multiple times, the initial annotations will fade to be completely invisible and rendered useless. I have not tried using code in terminal, but selecting all annotations (or all of a type of annotation) in the annotation list and changing color is a quick fix to the problem.

Mar 23, 2012 7:01 AM in response to Tonnika

I just noticed that it is possible to lock the document by clicking on the faded "edited" and also revert to previous versions. Locking more frequently and reverting to previous versions (if you haven't made changes to the document, yet the highlights are still faded) may minimize fading. I haven't tried reverting myself, although I have noticed that the problem doesn't seem to occur if my documents are locked.

Mar 28, 2012 11:02 PM in response to paddytheprogrammer

Not as computer savy as the rest, and I've never run terminal before. If you could please help me out, I'd really appreciate it because you seem to have sound the solution. I feel like I've lost 2 years of my work because of this fade, and since I took so much time color coordinating the annotations, I'm reluctant to select them all and turn them into one color.


I tried to follow your steps but not sure I was doing it right. I couldn't find the folder "usr/bin/", is that a folder that already exists or should I create it? secondly when you say save the text in that folder, do I save with text edit?


thanks,

Mar 28, 2012 11:33 PM in response to yHaider

Hi yHaider,


you can't see the folder /usr/bin because /usr is an invisible folder. I guess Apple made it invisible so you don't accidentally get in there and change stuff without knowing what you are doing.

Here is an optional step to make this folder visible. But just to make it very clear, this step is not necessary (terminal doesn't care about folders being invisible) and the folder is invisible for your own good.

If you want to make this folder visible anyway, type in the terminal:

sudo chflags nohidden /usr

after hitting enter, you will have to enter your password. And now you can see the folder in finder.


As to how you should save it:
Just follow the steps by paddytheprogrammer (also below), it includes saving the text in steps 1)-6) (nano is a text editor).

Here are some quotes so you don't have to look all over the thread:


Here is the code which you need to copy and paste in step 4).

paddytheprogrammer wrote:

#!/usr/bin/python

import re

import sys

if len(sys.argv) != 2:

print 'Wrong argument count'

exit(1)



infilename = sys.argv[1]

outfilename = infilename + ".fixed.pdf"

fpIn = open(infilename)

fpOut = open(outfilename, "w+")



line = fpIn.readline()

while line:

if re.search("^\<\< /Type /Annot", line):

line += fpIn.readline()

pos = line.find("endobj")

while pos == -1:

line += fpIn.readline()

pos = line.find("endobj")

if re.search("\/Highlight", line):

line = re.sub('/C \[.+\n?.+\n?\]', '/C [ 0.8396019 0.9160907\n0.5048240 ]', line)

fpOut.write(line)

line = fpIn.readline();

print "Done"


And here is the step by step instruction again (carefull in step 5), it actually says "ctrl" and not "cmd" - I overread this the first time):

In step 3), the text editing programm will open in terminal, don't expect a new window to open.

So for step 4) you have to paste the code from above into the terminal.


paddytheprogrammer wrote:


(for all commands just type the bits between the quotes, don't include the quotes):


1. Open up terminal

2. Enter command "sudo nano"

3. Enter your login password. Nano, the text editing program should open

4. Copy the text above and paste it in

5. Press ctrl+x

6. Press Y

7. Type "/usr/bin/FixHighlights" and press enter

8. Enter the command "sudo chmod +x /usr/bin/FixHighlights"

9. Now enter the command "FixHighlights", you should get the response "Wrong argument count"

10. Now you're ready to go, you just need to enter "FixHighlights" followed by a space and the name of the file you want to fix. This will be something like:
"FixHighlights Documents/yourfile.pdf"



If anything is unclear, just ask. I think I'll be on my computer for a while.

My Preview annotations are fading

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.