CAWT 2.4.9 Reference Manual

# ::ReaderTop, Main

The `Reader` namespace provides commands to control Acrobat Reader.

## CommandsReader, Top, Main

#### Open [::Reader]Reader, Top, Main

Open an Acrobat Reader instance.

Open fileName ?args?

`fileName` | File name of PDF file to open.
`args` | Options described below.
`-messages <bool>` | Turn document message bar on or off.
`-nameddest <string>` | Specify a named destination in the PDF document.
`-navpanes <bool>` | Turn the navigation panes and tabs on or off.
`-page <int>` | Specify a numbered page in the document, using an integer value. The document’s first page has a value of 1.
`-pagemode <string>` | Specify page display mode. Valid values: bookmarks thumbs none
`-scrollbar <bool>` | Turn scrollbars on or off.
`-search <string>` | Open the Search panel and perform a search for the words in the specified string. You can search only for single words. The first matching word is highlighted in the document.
`-statusbar <bool>` | Turn the status bar on or off.
`-toolbar <bool>` | Turn the toolbar on or off.
`-zoom <int>` | Specify a zoom factor in percent.

Use an already running instance, if available.

Note, that above described options are only a subset of all available command line parameters. For a full list, see: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Returns no value.

See also: OpenNew, Quit

Show source

    proc ::Reader::Open {fileName args} {

        # Open an Acrobat Reader instance.
        #
        # fileName - File name of PDF file to open.
        # args     - Options described below.
        #
        # -nameddest <string> - Specify a named destination in the PDF document.
        # -page <int>         - Specify a numbered page in the document, using an integer value.
        #                       The document’s first page has a value of 1.
        # -zoom <int>         - Specify a zoom factor in percent.
        # -pagemode <string>  - Specify page display mode.
        #                       Valid values: bookmarks thumbs none
        # -search <string>    - Open the Search panel and perform a search for the
        #                       words in the specified string. You can search only for single words.
        #                       The first matching word is highlighted in the document.
        # -scrollbar <bool>   - Turn scrollbars on or off.
        # -toolbar <bool>     - Turn the toolbar on or off.
        # -statusbar <bool>   - Turn the status bar on or off.
        # -messages <bool>    - Turn document message bar on or off.
        # -navpanes <bool>    - Turn the navigation panes and tabs on or off.
        #
        # Use an already running instance, if available.
        #
        # Note, that above described options are only a subset of all available
        # command line parameters. For a full list, see:
        # <http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf>
        #
        # Returns no value.
        #
        # See also: OpenNew Quit

        Reader::_Init
        Reader::_Start $fileName false {*}$args
    }

#### OpenNew [::Reader]Reader, Top, Main

Open a new Acrobat Reader instance.

OpenNew fileName ?args?

`fileName` | File name of PDF file to open.
`args` | List of startup options and its values.

For a detailled description of supported options see Open.

Returns no value.

See also: Open, Quit

Show source

    proc ::Reader::OpenNew {fileName args} {

        # Open a new Acrobat Reader instance.
        #
        # fileName - File name of PDF file to open.
        # args     - List of startup options and its values.
        #
        # For a detailled description of supported options see [Open].
        #
        # Returns no value.
        #
        # See also: Open Quit

        Reader::_Init
        Reader::_Start $fileName true {*}$args
    }

#### Quit [::Reader]Reader, Top, Main

Quit all Acrobat Reader instances.

Quit

Returns no value.

See also: Open, OpenNew

Show source

    proc ::Reader::Quit {} {

        # Quit all Acrobat Reader instances.
        #
        # Returns no value.
        #
        # See also: Open OpenNew

        variable readerProgName

        if { $readerProgName ne "" } {
            Cawt KillApp [file tail $readerProgName]
        }
    }

#### SetReaderProg [::Reader]Reader, Top, Main

Set the path to Acrobat Reader program.

SetReaderProg fileName

`fileName` | Full path name to Acrobat Reader program `AcroRd32.exe`

Use this procedure, if the automatic detection of the path to Acrobat Reader does not work.

Note, that this procedure must be called before calling Open or OpenNew.

Returns no value.

See also: Open, OpenNew

Show source

    proc ::Reader::SetReaderProg {fileName} {

        # Set the path to Acrobat Reader program.
        #
        # fileName - Full path name to Acrobat Reader program `AcroRd32.exe`
        #
        # Use this procedure, if the automatic detection of the path to
        # Acrobat Reader does not work.
        #
        # Note, that this procedure must be called before calling [Open] or [OpenNew].
        #
        # Returns no value.
        #
        # See also: Open OpenNew

        variable readerProgName

        set readerProgName $fileName
    }

# Start page

# Cawt

# Office

# Excel

# Ppt

# Word

# Outlook

# OneNote

# Office::Enum

# Excel::Enum

# Ppt::Enum

# Word::Enum

# Outlook::Enum

# OneNote::Enum

# Earth

# Explorer

# Ocr

# Reader

# Matlab

# Reader

## Commands

#### Open Open an Acrobat Reader instance.

#### OpenNew Open a new Acrobat Reader instance.

#### Quit Quit all Acrobat Reader instances.

#### SetReaderProg Set the path to Acrobat Reader program.

Document generated by Ruff!