EnglishFrenchSpanish

OnWorks favicon

pdfopen - Online in the Cloud

Run pdfopen in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command pdfopen that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


pdfopen, pdfclose - open or close a PDF file viewer

SYNOPSIS


pdfopen [ options ] [ --file ] file.pdf
pdfclose [ --file ] file.pdf

OPTIONS


-h, --help, -?
output help and exit.

-v, --version, -V
output the version number and exit.

-p <n>, --page <n>
when starting the viewer, display page <n> of the document (notes: not all viewers
support this feature, and even in those cases this option only has effect when the
document is initially loaded). This option is over-ridden by -g.

-g <named destination>, --goto <named destination>
when starting the viewer, display the page of the document containing the named
destination (notes: not all viewers support this feature, and even in those cases
this option only has effect when the document is initially loaded).

-r, --reset_focus
after sending commands to the PDF viewer, attempt to reset the input focus to the
window which had focus before the commands were sent.

-viewer, --viewer <ar9|ar9-tab|ar8|ar7|ar5|xpdf|evince>
use (respectively) Adobe Reader 9 (in a new window), Adobe Reader 9 (in a new tab
of a running AR9, if any), Adobe Reader 8, Adobe Reader 7, Adobe Reader 5, xpdf or
evince as the PDF viewer program. Adobe Reader 9 (in a new window) is the
default.

RATIONALE


At certain points of TeX document preparation, many people repeat a "edit-compile-view"
cycle. Since PDF viewers such as Adobe's Acrobat Reader ("acroread") do not automatically
refresh the display when the PDF file changes, this cycle can be more cumbersome than
desired. The pdfopen program provides the ability to automate the reloading of the PDF
document when it is changed.

Note: there seems to be little need for pdfclose under GNU/Linux, since (unlike the
situation for MS windows) acroread does not lock the PDF file, which would prevent pdftex
(or a DVI to PDF converter) from creating a new version of the PDF output file. However,
pdfclose is provided in case someone finds it useful.

DESCRIPTION


pdfopen searches for an instance of the specified (or default) PDF viewer displaying the
specified PDF file. If there is already an instance of the given viewer displaying the
given file, the viewer is instructed to reload the file. If no such instance is found,
pdfopen attempts to run the specified viewer on the specified document.

The default viewer is "acroread", which could start any one of a number of versions of
Acrobat Reader, depending on what is installed on your system. However, the commands to
reload the current document vary from one version of acroread to another; consequently, if
you are using a version of acroread other than AR9, you should explicitly specify the
viewer program.

This version of pdfopen accepts the following viewer options:
ar9, ar9-tab, ar8, ar7, ar5, xpdf, and evince.
The difference between ar9 and ar9-tab is significant when there is no instance of AR9
already displaying the requested document. In this situation, while ar9 will request
acroread to create a new instance of acroread (and thus open a new window) by using the
-openInNewInstance argument, ar9-tab starts acroread without this argument; if there is
already an instance of acroread running, a new tab will be opened in an existing window.

pdfclose searches for one of the above PDF viewers displaying the given file and instructs
the viewer to "close" the window. In most cases, the PDF viewer continues to run,
possibly now displaying just a blank window. (This behaviour varies somewhat from one PDF
viewer to another.)

PORTABILITY AND AVAILABILITY


These programs have been tested on Slackware64 Version 14.1 and a few other versions /
distributions of GNU/Linux. The code is reasonably generic and should work out of the box
using most recent X11 implementations. (Reports to the contrary are welcome, particularly
if they come with robust fixes.)

These programs are designed for X11-based systems. If you somehow find compiled versions
of these programs on a system using another window system, they are very unlikely to be of
any use to you.

Source and binaries of the programs can be downloaded from CTAN://support/xpdfopen/ (e.g.,
http://mirror.ctan.org/support/xpdfopen).

CAVEATS


If you use ar9-tab to reload the PDF document and the instance of acroread with the given
document is currently displaying some other document, the command causes your document to
be displayed, but not reloaded.

pdfopen works by looking for a window with a name (window title) matching that expected
for the given viewer and document. If for some reason your viewer's window name is not as
expected, pdfopen may not work for you.

With at least AR9 and some window managers, using pdfopen to reload the document gives
focus to the acroread window, even though the mouse cursor is not necessarily in that
window. This can be annoying. The -reset_focus option can be used to deal with this
problem.

Use pdfopen online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Phaser
    Phaser
    Phaser is a fast, free, and fun open
    source HTML5 game framework that offers
    WebGL and Canvas rendering across
    desktop and mobile web browsers. Games
    can be co...
    Download Phaser
  • 2
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 3
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 4
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 5
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 6
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • More »

Linux commands

Ad