GeneralPreserve Adobe Reader View

General information and discussion about TeXnicCenter
Post Reply
flar
Posts: 3
Joined: Mon Nov 24, 2008 6:44 pm

Preserve Adobe Reader View

Post by flar »

Hello everyone,
I'd like Adobe Reader to preserve the view of the current document when I work with TeXnicCenter, that is, I want that it sets the last page/zoom scale on reopen when I recompile the file. By default, a new file is always opened with the first page and the default zoom scale.

Adobe Reader has an option for that in the settings. However, when I recompile the file and the checksum hence changes, the Reader regards it as a totally new document and discards the previous view settings, again showing the first page.

I digged into the DDE Reference from Acrobat. There exist commands to set the scale and current page number, however, there is no way to read the current page number/view, which renders this option unusable. Adobe also provides an OLE Interface which is more poweful, but is only provided by Adobe Acrobat and not the Reader...

I'm a bit stuck now, does anyone know another way to accomplish what I want?

Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Preserve Adobe Reader View

Post by MartinC »

This is not possible with Adobe Reader. You should try Sumatrapdf (http://blog.kowalczyk.info/software/sumatrapdf/). See also http://william.famille-blum.org/blog/.

Martin.
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Preserve Adobe Reader View

Post by T3. »

You can append [MenuitemExecute("GoBack")] to your DDE command in order to return to previous view after reload.

Cheers,

Tomek
flar
Posts: 3
Joined: Mon Nov 24, 2008 6:44 pm

Re: Preserve Adobe Reader View

Post by flar »

Thanks for your help.

I tried SumatraPDF. It reloads the changes indeed, however it crashes about every second time I recompile the file on both my desktop and my laptop...which is kind of annoying.

The "[MenuitemExecute("GoBack")]" trick doesn't work for me, it still always opens the first page of the document.
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Preserve Adobe Reader View

Post by T3. »

flar wrote:The "[MenuitemExecute("GoBack")]" trick doesn't work for me, it still always opens the first page of the document.
I've seen somewhere that this doesn't work with new versions.

From other alternatives you can try PDF-XChange Viewer. This one remembers the last view (settable in preferences). It locks open files but you can close files from the command line with /close switch.

Cheers,

Tomek
flar
Posts: 3
Joined: Mon Nov 24, 2008 6:44 pm

Re: Preserve Adobe Reader View

Post by flar »

Works fine, thanks a lot!
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Preserve Adobe Reader View

Post by MartinC »

flar wrote:Thanks for your help.

I tried SumatraPDF. It reloads the changes indeed, however it crashes about every second time I recompile the file on both my desktop and my laptop...which is kind of annoying.

The "[MenuitemExecute("GoBack")]" trick doesn't work for me, it still always opens the first page of the document.
Did you set the right DDE commands? They are not the same as for Adobe Reader. See http://code.google.com/p/sumatrapdf/wiki/DDEcommands.

Sumatrapdf has the advantage that it supports forward and inverse search, like YAP.
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Preserve Adobe Reader View

Post by localghost »

MartinC wrote:[...] Sumatrapdf has the advantage that it supports forward and inverse search, like YAP.
Oh, that's an interesting matter. I have to take a look at that (for the case I will work under Windows in the future).
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply