Skip navigation
Currently Being Moderated

Wishlist: Refresh a loaded file

Oct 17, 2007 11:08 AM

Hi, I have a problem with AR8.1.1 that did not exist in the previous version. I can not make AR realod a file that is already loaded.<br /><br />I need this function because I use AR to view documents typeset with LaTeX. With LaTeX a pdf is generated from markup code. When the compilation finishes I launch acroread on the result with a helper app [1] that does not stay attached to the shell. With AR7 I could resuse the command while the file was loaded and AR would reload the PDF document, This does not work anymore.<br /><br />It would be helpful if AR would reload a file if it has been passed as an argument but it was already loaded.<br /><br />acroread file.pdf<br /><load the file><br />acroread file.pdf<br /><reload/refresh the file><br /><br />Of course it would be essential to keep the view at the very same position in the file and not jump to the beginning.<br /><br />Please consider this wish. I may not be a paying customer for applications, but I spent a lot of money for Adobe fonts in the past.<br /><br />Thanks,<br />Tobias<br /><br />[1] http://www.ctan.org/tex-archive/support/xpdfopen/
 
Replies
  • Currently Being Moderated
    Oct 18, 2007 5:16 AM   in reply to (Tobias_W)
    Hi Tobias<br /><br />I assume you are using pdfopen.c for the simulation of reload. You are passing keystroke ctrl+W to close the PDF and keystroke Alt+Left(previous view) to open the pdf in case acroread is running, and fork acroread otherwise, which works almost like reload for you. <br /> <br />If you see the latest version of Adobe Reader, "Previous view" is disabled if you do not have an open document. This behavior, namely opening a previously closed document when "previous view" was chosen, was a bug in version 7.0. This has been fixed in the 8.1.1. Since your code uses this particular shortcut to open the document, it is not working. <br /><br />Also, in the earlier version (7.0), the title bar used to display [Adobe Reader - <file name>]" and version 8.0 displays " [<File name> - Adobe Reader]", so your program is not able to grab the acroread window and close the document. <br /><br />What you can do is replace the following lines of code in pdfopen.c<br /><br /># define READERWINPREFIX " - Adobe Reader " with <br /># define READERWINPREFIX " Adobe Reader - "<br /><br />strcpy(winname,basefile);<br />strcpy(winname+strlen(basefile)),READERWINPREFIX); with<br /> <br />strcpy(winname,READERWINPREFIX);<br />strcpy(winname+strlen(READERWINPREFIX)),basefile);<br /><br />The code "forking" acroread should be made unconditional for reader 8.1.1 since calling acroread <filename> when an instance of acroread is running already would simply open up the document, which is what you want.<br /><br />I do agree that having a command line argument in acroread itself that reloads a document would be helpful. We'll try to provide this feature in the next release.<br /><br />Hope that helped,<br />Sanika
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 19, 2007 3:57 AM   in reply to (Tobias_W)
    Your wish is 'your command'! :-) (Pun intended). We've put this through the process and hopefully should be able to address this in the next major release.

    Thanks for your feedback.

    -vc
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 25, 2007 4:44 PM   in reply to (Tobias_W)
    What's the difference between Microsoft and Adobe?

    Sanika provides the answer:

    ]This behavior, namely opening a previously closed document when "previous view" was chosen, was a bug in version 7.0. This has been FIXED in the 8.1.1. (capitalization mine)

    In other words, instead of "it's not a bug it's a feature" with Adobe we have "it's not a feature, it's a bug".

    -Mike O'Connor
     
    |
    Mark as:
  • Currently Being Moderated
    Jan 13, 2008 1:23 PM   in reply to (Tobias_W)
    Sanika,

    I second Tobias on the -reload command-line switch: that would be so soooo useful!

    Thank you!

    -Alexei
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 17, 2008 8:18 AM   in reply to (Tobias_W)
    Hi Virai:

    Let me add my begging request to this one, too.

    However, I think something even simpler would achieve even more: just add the ability to type CTRL-R inside acroread to execute "reload document". If the acroread user looks at a pdf document, hitting this ctrl-R key seems easy and quick. (I would prefer it if I could map it to any key, but ctrl-R seems reasonable. personally, I would use a simple 'r'.)

    this is not to say that the original request is bad---I would love command line control, too.

    Incidentally, xpdf checks whether files have changed in between page changes. If it has, it reloads the new file automatically. This is nice because I can use mouse-scroll up followed by down, and see the revised document.

    [PS: your anti-aliased display quality is simply fantastic.]

    /iaw
     
    |
    Mark as:
  • Currently Being Moderated
    Feb 17, 2008 10:55 AM   in reply to (Tobias_W)
    Ivo,

    We've recorded this request and your suggestions in our database for the next release.

    Thanks for the feedback! Please keep the requests coming.

    -vc
     
    |
    Mark as:
  • Currently Being Moderated
    Sep 27, 2010 5:35 PM   in reply to (ivo_welch)

    I am a university professor and I think Ivo's CTRL-R suggestion would be extremely useful. There exists a large user base of academics, researchers and engineers that use LaTeX to create PDF documents and that would greatly benefit from this feature. The editing iterations looks like this: edit the tex source, recompile using pdflatex, view the new PDF. As of today, it is necessary to manually reload the PDF each time, which is tedious. A simple CTRL-R shortcut to reload the PDF would save everybody a lot of time.

     

    As of September 2010, this feature has not been implemented (I have the latest version, Adobe Reader 9.3.4). Adobe, would you mind helping the research community by implementing this feature ? Thank you for your consideration.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 12:33 PM   in reply to pixelator33

    It's the lack of this feature that finally made me abandon Adobe reader. I now use Apple's Preview for all my pdf viewing (and even annotating) and I couldn't be happier. I have no idea who the intended user of Adobe Reader is, but it certainly isn't academics who write and revise papers.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 21, 2012 3:49 PM   in reply to Victor Eijkhout

    Victor,

     

    The refresh feature is present in the latest version of Linux AR:

    just type Ctrl-R. The real problem, however, is that Linux AR

    has been end-of-lined i.e. killed off. At least that was the

    story I was given  when I pressed the matter last year.

     

    James

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)