OnWorks favicon

dvitodvi - Online in the Cloud

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

This is the command dvitodvi 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



dvitodvi - rearrange pages in a DVI file


dvitodvi [ -q ] [ -i infile ] [ -o outfile ] [ -wwidth ] [ -hheight ] pagespecs [ infile [
outfile ] ]


Dvitodvi rearranges pages from a DVI file, creating a new DVI file. Dvitodvi can be used
to perform a large number of arbitrary re-arrangements of Documents, including arranging
for printing 2-up, 4-up, booklets, reversing, selecting front or back sides of documents,
scaling, etc.

pagespecs follow the syntax:

pagespecs = [modulo:][mag@]specs

specs = spec[+specs][,specs]

spec = [-]pageno[(xoff,yoff)]

modulo is the number of pages in each block. The value of modulo should be greater than 0;
the default value is 1. The optional mag parameter adjusts the file's magnification by
the magnification specified. The magnification and modulo can be specified in reverse
order if desired. specs are the page specifications for the pages in each block. The
value of the pageno in each spec should be between 0 (for the first page in the block) and
modulo-1 (for the last page in each block) inclusive. The optional dimensions xoff and
yoff shift the page by the specified (positive) amount. xoff and yoff are in PostScript's
points, but may be followed by the units cm or in to convert to centimetres or inches, or
the flag w or h to specify as a multiple of the width or height. If the optional minus
sign is specified, the page is relative to the end of the document, instead of the start.

If page specs are separated by + the pages will be merged into one page; if they are
separated by , they will be on separate pages. If there is only one page specification,
with pageno zero, the pageno may be omitted.

The -w option gives the width which is used by the w dimension specifier, and the -h
option gives the height which is used by the h dimension specifier. These dimensions are
also used (after scaling) to set the clipping path for each page.

Dvitodvi normally prints the page numbers of the pages re-arranged; the -q option
suppresses this.


This section contains some sample re-arrangements. To put two pages on one sheet (of
landscaped A3 paper), the pagespec to use is:


To reduce an A3 page to A4 size, the pagespec to use is:


To select all of the odd pages in reverse order, use:


Use dvitodvi online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    XyZerKunG ServerTool
    XyZerKunG ServerTool
    XyZerKunG ServerTool helps you to make
    your own Minecraft server and play with
    your friend for a few minutes.
    Features:Automatically create a
    Minecraft serverU...
    Download XyZerKunG ServerTool
  • 2
    Java source intended to serve as a
    nexus for teaching both mathematics and
    software solutions for computation on
    iterative equations. Public interfaces
    allow a...
    Download CalcTools
  • 3
    Rocket.Chat Desktop Client
    Rocket.Chat Desktop Client
    Rocket.Chat Desktop client is the
    official desktop app for Rocket.Chat,
    the simple but powerful open source web
    chat platform. It's tested on macOS,
    Download Rocket.Chat Desktop Client
  • 4
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 5
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 6
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • More »

Linux commands