You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

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

Sep 17, 2011 6:10 AM in response to Tonnika

After doing a little experiment I am pretty sure that this is directly related to the Versions feature. Old annotations seem to be fading with every saved version. Simply opening the file does not appear to have an effect.

Locked files definitely don't change (locked either manually or automatically after they haven't been opened for a while).

Unfortunately locking and unlocking the file oneself (however annoying that might be) does not help, frankly it even makes matters worse.

I guess this is a bug in the system and only Apple can fix it. I hope someone from the company is reading this… Or does anybody know how to e-mail them to let them know about this problem?

Jan 7, 2012 9:44 AM in response to Tonnika

This is a definite bug. It looks like something is causing the colours to be slowly pushed towards white with every save. Not sure what's causing the problem but I wrote a little python script to recover the highlights for my wife. Thought I would share:

#!/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"



Save it as /usr/bin/FixHighlights and run from terminal with FixHighlights {filename}


It will output a new file called {filename}.fixed.pdf.


Unfortunately there's no way of knowing what colour they should have been originally so all highlights will be set to green.


I wrote it quickly as an excuse to learn some python so use at your own risk 🙂

Jan 23, 2012 4:18 AM in response to Tonnika

I have the same problem and found a comparable simple way to recreate old annotations, highlightings etc:

Click the "Show Annotations List" and select multiple annotations of the same color (if you can still figure it out) and then just set the color for all of them.

It is still annoying but it is a rather fast way to prevent your annotations from "whiting out".

Easiest when done regularly before it gets white so you dont have to guess/remember what color it used to be.

Jan 23, 2012 4:24 AM in response to Tonnika

Here is another way to fix a pdf with faded annotations:


-show the list of annotations (click on the last button in the annotation toolbar).

-select each and every annotations in the same (faded) colour (by clicking+cmd on each one of them).

-change the colour for all the selected annotations at the same time (by selecting the colour in the colour button, in the annotation toolbar).


I've just done it in a 200 pdf with highlights in 3 different colours, and it took a while. Of course, if you highlight in a single colour it's much quicker to solve.


Now I've got the file blocked, and I hope it won't fade anymore, but I can't highlight either!


If Apple doesn't fix this quickly, I'll just have to move to another pdf annotator software. 😠

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

paddytheprogrammer wrote:


This is a definite bug. It looks like something is causing the colours to be slowly pushed towards white with every save. Not sure what's causing the problem but I wrote a little python script to recover the highlights for my wife. Thought I would share:

#!/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"



Save it as /usr/bin/FixHighlights and run from terminal with FixHighlights {filename}


It will output a new file called {filename}.fixed.pdf.


Unfortunately there's no way of knowing what colour they should have been originally so all highlights will be set to green.


I wrote it quickly as an excuse to learn some python so use at your own risk 🙂




I really don't know how to use Python scripts. I am pretty computer savy though. Can you please show me how to run this. I highlighted soemthing for class also 100+ pages and they are all fading away. I can really use this. Thanks.

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 Account.