lyx_mirror/development
Uwe Stöhr 26144ae4dd pdfview.nsi: new version that fixes bug #9512 and some more
The general problem is that Acrobat opens PDF files with write access so that PDF files cannot be modified externally by LyX/LaTeX.

The old pdfview used the programs pdfopen and pdfclose to open and close PDF files in Acrobat and it additionally closed and opened the PDF whenever it was changed (to simulate LyX's update button).

Since Acrobat DC (aka Acrobat 15) it is no longer possible to close PDF files in Acrobat. Due to changes in the Acrobat API also the pdfopen program can no longer be used.
Besides this the approach of updating the PDF whenever it changed was always a hack that often killed Acrobat. The reason is that one cannot immediately update the PDF view if the PDF is changed because depending on the size LaTeX needs up to several seconds to generate the PDF. If the PDF is opened while TeX is still creating is one get error messages from Acrobat Acrobat must be restarted - very annoying. During the years I experimented with a wait time to minimize these problems but of course it can never be solved.

The new pdfview version uses a completely different approach:
- it checks if the PDF is opened by Acrobat by reading the window name. If it is found this program windows will be closed. So Acrobat is not ended and other opened PDF files stay opened.
- to update the PDF view from within LyX one has to press the view button, not the update button. Only this way we know that TeX is ready and the PDF can be opened by Acrobat with write permissions.
2015-05-21 02:19:13 +02:00
..
attic Correct the spelling of "occured" to "occurred" 2015-02-09 18:44:02 -05:00
autotests ctex.lyx: use free fonts by default 2015-05-05 02:15:44 -04:00
checkurls Use prototypes in perl scripts 2014-01-24 11:00:07 +01:00
cmake Cmake build: Define LYX_USE_CXX11 iff using c++11 extensions after commit 329eae5605. 2015-05-20 12:07:41 +02:00
coding Document class file name rule 2014-06-07 11:32:15 +02:00
cygwin Update cygwin script. 2015-03-03 18:17:37 +01:00
HTML Update HTML notes again. 2011-04-03 13:38:05 +00:00
keystest Next keystest patch from John McCabe-Dansted. 2010-01-06 22:11:59 +00:00
lyxserver Remove obsolete source file. 2010-02-18 09:58:20 +00:00
MacOSX Disable mouse middle button paste on Mac OS X per default 2015-02-08 20:08:29 +01:00
mathmacros * description of the math macro implementation 2008-03-15 10:54:26 +00:00
tools Convert updatelayouts.sh to python 2014-11-16 12:43:52 +01:00
Win32 pdfview.nsi: new version that fixes bug #9512 and some more 2015-05-21 02:19:13 +02:00
.gitignore Setup .gitignore for generated files 2012-03-22 02:16:12 +01:00
expectedTestFailures Cmake build tests: update comments 2013-08-25 18:18:19 +02:00
FORMAT Parse \multicolumn in math (bug 396) 2015-05-17 13:43:37 +02:00
LyX-Mac-binary-release.sh add Mavericks and Yosemite SDKs 2014-12-21 15:58:34 +01:00
lyx.package.README Creat source package with 'make package_source' from inside the build directory 2011-05-23 08:44:32 +00:00
lyx.rpm.README Typos 2012-06-05 12:22:13 +02:00
lyx.spec.in Update the spec file template 2014-12-08 13:15:06 +01:00
Makefile.am Add lyx_commit_hash.h.cmake to distribution tar ball 2014-10-24 18:13:27 +02:00