Commit Graph

20 Commits

Author SHA1 Message Date
Eugene Chornyi
aaca6b24f1 Fix bug 9961
remove the error message for not finding a pdf viewer (apparently empty string is returned by FindExecutable if the executable is a Windows Store app). If there is really no pdf viewer, let the Windows itself decide what to do (produce error or not and which one).
2021-01-03 20:11:49 +01:00
Juergen Spitzmueller
9cccbb3615 Address #9368
pdfview creates a temp pdf file to determine the standard pdf viewer,
code simplification, reducing dll dependencies

Patch by Eugene.
2020-04-09 10:08:44 +02:00
Uwe Stöhr
241bf7d58b Win installer: update to Qt 5.9
- also remove Qt5XML in the installer as it appears not to be used by LyX
- update to latest MikTeX installer which resolves some problems
- add a note that pdfview is not yet ready for full Unicode support
2017-11-11 18:34:25 +01:00
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
Uwe Stöhr
2a0b886a5c pdfview: rename the file to distinguish it from the new version 2015-05-21 02:04:41 +02:00
Uwe Stöhr
b8dbaab915 installer: a comment format fix 2012-12-31 18:34:49 +01:00
Uwe Stöhr
52af78aa0c pdfview: re-add some code that might be useful in the future 2012-11-20 21:58:44 +01:00
Uwe Stöhr
bd504c09de LyX for Windows: update pdfview for Acrobat XI and fix longstanding bug
- to be able to support Adobe Reader/Acrobat XI I had to use new binaries for opening/closing PDFs. That way I found the solution for a long standing and super annoying PDF viewing bug (not 100% perfect but works for more than 95% of the cases, while formerly the view failed for all cases where LaTeX run more than once when updating a PDF view)
2012-11-20 01:07:08 +01:00
Joost Verburg
e254eec97b Compatibility update for Adobe Reader X. The new pdfview should be used with the updated versions of pdfopen/pdfclose.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37661 a592a061-630c-0410-9148-cb99ea01b6c8
2011-02-14 19:53:44 +00:00
Joost Verburg
93a43ab79c * All ImageMagick and Ghostscript resources are no longer installed as separate files but included in the applications. This improves performance and makes maintenance easier.
* Updated download location
* Fixed compatibility issue with recent NSIS versions

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31186 a592a061-630c-0410-9148-cb99ea01b6c8
2009-08-21 22:31:06 +00:00
Joost Verburg
2e28b6e57b fix lock on tmpbuf directory
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24485 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-24 10:51:56 +00:00
Joost Verburg
72c31a4e73 quit when PDF file no longer exists
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24478 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-23 20:40:46 +00:00
Uwe Stöhr
2b6abdef36 installer:
- prepare for the upcoming release
 - use Joost's pdfview program
 - don't always delete the file extension when uninstalling

pdfview: add the needed DLLs

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24471 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-23 01:33:21 +00:00
Joost Verburg
e32967bd5a use new icon
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24157 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-07 18:35:10 +00:00
Joost Verburg
c4e4fe6e2d improved monitoring for PDF updates: use Windows notications to monitor the LyX tmpbuf instead of polling the PDF file
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24141 a592a061-630c-0410-9148-cb99ea01b6c8
2008-04-06 16:35:00 +00:00
Joost Verburg
f5e613ac51 Windows Vista: these applications don't need any special rights
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18930 a592a061-630c-0410-9148-cb99ea01b6c8
2007-06-28 17:00:30 +00:00
Uwe Stöhr
c8639179da - reupload LyXWinInstaller for code verification as discussed with Bo
- set missing EOL flags for official installer files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17116 a592a061-630c-0410-9148-cb99ea01b6c8
2007-02-08 21:09:30 +00:00
Joost Verburg
129a520bd9 * Custom NSIS plug-ins will be included in the dependency packages
* New Console plug-in with support for restricted users
* Warning message if no PDF viewer is installed

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15773 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-06 21:51:43 +00:00
Joost Verburg
a3b98687fa store temporary PDF files outside the LyX tmpbuf to prevent file locking problems when LyX is closed while Adobe Reader is still open
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15742 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-04 23:06:14 +00:00
Joost Verburg
b61b9cc6a4 LyX 1.5 Windows installer
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15734 a592a061-630c-0410-9148-cb99ea01b6c8
2006-11-04 14:28:11 +00:00