Skip to main content
Klaus_at
Participant
June 12, 2017
Answered

Disable file-lock on Adobe Reader DC (Windows 10)?

  • June 12, 2017
  • 8 replies
  • 38718 views

TLDR: I need to view and create annotations without blocking Dropbox or other third-party software from changing the PDF.

Under Windows, when Adobe Reader DC opens a file, it reserves exclusive write-access.

This is problematic in several ways:

  • LaTeX documents cannot be recompiled while viewed in Adobe Reader DC
  • It makes Adobe Reaser DC unsuitable for viewing work-in-progress plots saved as PDFs for use in pdfLaTeX.
  • Dropbox will be unable to synchronize changes made on mobile while the document is opened (e.g. annotations created on an iPad).

Is it possible to prevent Adobe Reader DC from locking files and, ideally, to make it reload the file automatically if it was changed on disc? The latter would be required to avoid accidentially overwriting a file synced from another device with a previous state.

It most recently observed the problem with Adobe Reader DC 17.009.20044, but has existed already when I first used LaTeX almost 10 years ago.

The most common workaround is using SumatraPDF for use with LaTeX or other software that needs to overwrite a PDF frequently. 

However, I specifically need the ability for third-party software (Dropbox) to change a file, which I have (intentionally or not) left open after writing or viewing annotations. SumatraPDF doesn't allow creating annotations and has very limited support for viewing them (e.g. no "list of annotations" view). PDF-Xchange on the other hand also blocks the file.

Correct answer Dov Isaacs

Sorry, but what you are requesting is a fundamental conflict between integrity and your perceived usability needs.

Acrobat / Reader actually reads and writes from and to PDF files that it has open. Such files may be many gigabytes in size and thus cannot be reasonably kept all in memory at one time. Thus, it must lock the file to prevent changes or deletions by other processes while it has it open. (Or alternatively it would need to make its own full temporary copy of the file every time it opens a PDF file, a time and space-wasting operation.) Quite honestly, we don't see this as a “problem” nor have any other significant number of our users. Actually, it Acrobat / Reader did allow what you are asking for, many users would consider it a major bug!!

I suspect that “SumatraPDF” is either reading the entire PDF file into memory (limiting its ability to deal with very large PDF files) and then closing the file or making a temporary copy, neither of which are viable for Adobe to do for either Reader or Acrobat.

Perhaps a better solution is to fix LaTeX or its parameterization to prompt for a new file name if it finds the current file is locked or possibly have LaTeX create new folders for each new generation of PDF files it generates which you can copy over when you are done mucking with the previous generation's file.

In any case, Acrobat / Reader will not be changed to allow PDF file modifications or deletions by other processes while Acrobat / Reader has the file open.

          - Dov

8 replies

Participant
May 8, 2021

Make a BAT file with the following:

 

taskkill /IM AcroCEF.exe /F
taskkill /IM AdobeCollabSync.exe /F

 

et voila.

Participant
May 8, 2021

Seems to be a nice diea but it doesn't work (on Windows 10).

Participant
November 30, 2020

I've seen this reply before, and I guess it's up to Adobe to tell people to shove off and download alternative software all they want. I just think it's hilarious that you can be this dismissive of a suggestion and then be surprised that you don't have more users who need the functionality.

I'm guessing at least half of SumatraPDF's user base would have been using acrobat reader if they weren't forced to use software that actually integrates with other software. Even your own software clashes with this! It's not because we think PDF is the main format for Illustrator, it's because we're *exporting* to PDF from Illustrator and Indesign, and we'd want to be able to do that without double checking that the file isn't open in Reader or *selected* in Explorer. 

Make the reader mode difficult to get to if you want, the people who care don't worry about having to set some cmd flag, and the people who would consider this a bug will never see it.

At the very least you have to admit that it's weird to reserve editing rights for a thumbnail previewer.

cakeller
Known Participant
November 7, 2020

Sorry but with respect, I take issue with your assessment that "other significant number of our users". This has been a problem with PDFs for over a decade if you want thumbnails in explorer, without which managing them is terrible.

 

When used as a viewer, it does not make sense that a document must be locked for exclusive access. If the document is actively being read, ok.  if the document has changed, notifiy the user it has, and re-open. locking a document that is only being read, even when it's not being read, is bad-form.

 

I need thumbnails. generation of thumbnails and/or previewing them locks pdfs, and sometimes doesn't let go after many minutes of being outside that folder.

 

so... this is a problem for me, and has been for over a decade. just because I haven't previously piped up, and others haven't either, doesn't mean it's not a problem.  it just means that most people, imo, feel that adobe will dismiss the problem as too hard and not worth the bother.  which is an unfortunate attitude. That said, it seems to be changing with the subscription model. much to many folks' surprise.

 

while reading a file, pdf or otherwise, the process doing so should be able to open in read-only mode, note the modification date, and release the lock while not actively reading the file. When re-entering reading mode, check the file modification date and if it's changed, notify the user it's changed and offer to re-load.

 

something like that for a VIEWER makes way more sense to me.

 

but does my voice matter? - I'm still not 100% sure.

 

 

N J A
Participating Frequently
May 28, 2020

I think it's reasonable that Acrobat locks a PDF file while it is open in Acrobat. However, there has been a fundamental bug in Acrobat (or its associated processes) for many years: it locks a PDF file (or its folder) even when the PDF file has been closed in Acrobat! The processes AcroCEF.exe and AdobeCollabSync.exe seem to be the culprits. Consequently, our DTP software cannot rewrite a PDF file even though it has been closed in Acrobat. Instead, the entire Acrobat application has to be closed. Alternatively, using Windows task manager to end the offending processes (named above) immediately allows our software to rewrite the PDF file. Not correctly releasing files represents a fundamental error in Acrobat's file handling.

Participant
August 11, 2020

I second your request for I was stumbling over this thread after having same issue I've encountered multiple times for the past months: opening PDF file from a pen drive in Acrobat, then close the file, close Acrobat, trying to unmount the pen drive which is failing due to "some" application is using this file. Solution: open task manager, kill any running Adobe collaboration service process, unmount ...

 

I do not ever collaborate with colleagues when opening files using any of the Adobe applications. Sometimes those files are private stuff Adobe shouldn't even consider to sync with anyone anywhere. This is highly annoying not to say close to criminal behaviour in terms of EU GDPR. At what point in time did I express my consent with this?

Participant
January 29, 2020

> Quite honestly, we don't see this as a “problem” nor have any other significant number

> of our users.

 

Perhaps the user's that experience this tend to just switch to a different reader? Silence does not necessarily mean that there isn't a problem. As this discussion shows. I certainaly have this problem too, in the same scenario. I.e. PDF generated by some script or other software, from source material, and I want to check on the rendered PDF while making changes to the script or the source material.

 

 

> Perhaps a better solution is to fix LaTeX or its parameterization to prompt for a new file name

> if it finds the current file is locked or possibly have LaTeX create new folders for each new

> generation of PDF files it generates which you can copy over when you are done mucking with

> the previous generation's file.

 

I'm afraid you sort of miss the point here. A much simpler solution than modiying LaTeX or other scripts to produce a new file name, would be to simply close the reader program before attempting to regenerate the PDF. But the actual _point_ is that it leads to an inefficient and tedious workflow. When I run the script under Linux with evince as PDF viewer, it doesn't lock the file and I can repeatedly rerun the script and within a split second evince will detect the file change and update the rendered view. Keeping the PDF rendered on half the screen and my editor on the other half, this is quite efficient. On Windows colleagues tend to use Acrobat Reader by default, this preventing this workflow. Closing Reader and reopening the file manually after every rerun of the script is inefficient. Making the script always use a new file name doesn't fix this, because I would still need to open the file manually and now I have a bunch of files to delete also so it's actually even worse.

Participant
December 21, 2017

I'd just like to add that Klaus.at is not alone with this need Dov Isaacs

Here is another example, one that we are experiencing and really annoys us. One of our designers that use Illustrator are working in PDF-files so that others can view her work using Adobe Acrobat Reader DC. There are several colleges that need to check on her designs from time to time. When they open a file that she already has open in Illustrator she can no longer save her changes and is therefore interrupted in her work.

So, other people are allowed to open her files (that are already opened for editing by her) with a software (made by Adobe) that is meant for viewing files. So far so good! But Adobe Reader will also lock the file so she can't continue her work. That's not good.

Receiving a cached copy for our viewing pleasure when we open a PDF with a PDF reader can be considered rather intuitive, as in "expected behavior before reading the manual". Intuitive behavior is a very important factor when designing good software.

The argument about "space waste" cannot be relevant in the most scenarios (99% of the cases?) but more of a special case, right? And special cases should not be allowed to dictate and decrease the usability of the more common case if it can be avoided.

Here is a crude and intentionally unpolished suggestion, for brainstorming:

When opening a file with Adobe Reader DC, if the file is smaller than "computer RAM-size divided by 2", copy the file to cache in the background while the file is opened. Once the copy is completed, release the lock on the file.

And don't tell me you have to write to the file continuously while having it open in Adobe Reader for viewing in ways that can't be done without locking the file for everyone else. Why then can a file be opened by Adobe Reader when Adobe Illustrator already has that file opened for active editing? Does Adobe Reader ignore the lock Illustrator has and write anyway. Doesn't seem like a good thing.

Ok. But what if we want to actively change the file with the software that's meant to read files, even though it's already opened by another software for editing?

Then Adobe Reader DC can try to reapply the lock as soon as a EDIT-function is requested. If someone else is already editing the file, or in the process of opening it, a lock should exist that correctly prevents the second editor from changing the file.

I know I don't have all the answers here, but come on. With the competence you have I have no doubt in my mind that you can solve this in a beautiful way.

Dov Isaacs
Legend
December 21, 2017

Alfred,

Thanks for your suggestions.

One of the biggest mistakes we made at Adobe was making believe that PDF was the native file format of Adobe Illustrator. It is NOT. The fact is that although saving an Illustrator file as a .AI file (with the PDF compatibility option) or as a .PDF file (with the Illustrator editability option) produces a PDF file that can be opened in Adobe Reader or Acrobat, the actual Illustrator artwork is stored as “private data” within the file. Conceivably, if one opens such a PDF file in Reader or Acrobat and uses any of the Reader or Acrobat editing features, the PDF content and the Illustrator content can differ from that point on! And that's dangerous. When tracking down “issues” that our customers have with PDF files, very often the problems have to do with misconceptions about whether Illustrator is a general purpose editor of PDF files as well as synchronization issues between the PDF and the actual Illustrator content.

Generally, I advise our customers using Adobe Illustrator to maintain the artwork in .AI files without PDF compatibility and that for purposes of production (viewing, printing, proofing, etc.), they “save as copy” in PDF format using the PDF/X-4 settings and not enabling the “editability” feature. Yes, there are two separate files, but it eliminates confusion, synchronization issues, etc. And it works reliably!

By the way, today's operating systems (both Windows and MacOS) use virtual memory. Thus, calculations based on “RAM-size divided by 2” is a very obsolete concept that is irrelevant on today's systems.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)
Participant
December 22, 2017

Hi Dov!

Thanks for your reply. I appreciate your feedback, and I consider it a privilege to be allowed to communicate with an Adobe employee that cares to listen to their customers.

My dream scenario here would be if you chose to listen to this customer suggestion with an open heart and talked to the developers about it, so I wont give up yet and I'll try to remain constructive and precise. It is after all our common goal to have Adobe make software so good that customers are blown away by the possibilities, the quality and the attention to detail.

You say that one of Adobes biggest mistake was to convey the idea that PDF is the native format for Illustrator, the reason being that editing a PDF file with both Illustrator and e.g. Acrobat Reader DC (at different points in time) can introduce a malfunctioning relationship between the Illustrator content and PDF content within the file.

Could it be true that the mistake here was not that Adobe introduced a fantastic possibility for their users, but instead that Adobe has not yet made sure this possibility is implemented in a good way? The mistake being that they are continuously allowing their users to suffer from a job they have not yet completed.

And could not a small but important step towards repairing that mistake be to make sure that Reader DC can (it could be optional through a setting in the Reader software) implement a Read Only approach to PDF files that are already opened by another user in Illustrator, thereby enabling the Illustrator user to continue saving their work at the same time securing the integrity of the file?

madmaxx42x
Participant
October 9, 2017

when I edit a file in adobe and go to save It ...... it will not overwrite the file and save the changes I just made to it

I have to save it under a different name.... and now I have 2 files and have to spend time to verify which is the most current

then I cant delete or rename the old one because your recent files list has it "open" so I have to clear recent files

close adobe and close all explorer windows then open explorer and then delete the old one and rename the new one again to the original file name as we have specific file naming conventions

very counter productive

all because of your locking files idea

Dov Isaacs
Dov IsaacsCorrect answer
Legend
July 10, 2017

Sorry, but what you are requesting is a fundamental conflict between integrity and your perceived usability needs.

Acrobat / Reader actually reads and writes from and to PDF files that it has open. Such files may be many gigabytes in size and thus cannot be reasonably kept all in memory at one time. Thus, it must lock the file to prevent changes or deletions by other processes while it has it open. (Or alternatively it would need to make its own full temporary copy of the file every time it opens a PDF file, a time and space-wasting operation.) Quite honestly, we don't see this as a “problem” nor have any other significant number of our users. Actually, it Acrobat / Reader did allow what you are asking for, many users would consider it a major bug!!

I suspect that “SumatraPDF” is either reading the entire PDF file into memory (limiting its ability to deal with very large PDF files) and then closing the file or making a temporary copy, neither of which are viable for Adobe to do for either Reader or Acrobat.

Perhaps a better solution is to fix LaTeX or its parameterization to prompt for a new file name if it finds the current file is locked or possibly have LaTeX create new folders for each new generation of PDF files it generates which you can copy over when you are done mucking with the previous generation's file.

In any case, Acrobat / Reader will not be changed to allow PDF file modifications or deletions by other processes while Acrobat / Reader has the file open.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)
vladimirc16752949
Participant
April 29, 2018

Hi.

I'm agree with HooksIT, it is a great thing one can just ask staff and promptly receive the answer.

Thank you for pointing out to SumatraPDF, that is exactly what I need to work with TeX, it does not lock the file and it does make auto-refresh on update. I hope this thread will be kept here for other users in order to find it (personally I came here from the search engine results page).

However, I deeply disagree with the point of Dov. What they simply make is breaking other utilities by holding lock on a file. Moreover, they conduct nonconsistent behaviour for the product, because they can't lock these files on Linux and OS X. They could just load the file into the memory for small files and leave it as is for big ones (or make a temporary copy).

As the last point I would like to say that suggestion to fix TeX is pretty funny. Why on earth they should make workaround for every broken application (I hope, Adobe Reader is the only one). It is the Reader, why would it lock something? By the way in Microsoft Word they have so called "editing mode". May be Adobe can borrow some ideas from there...