2 %% This is file `hdvips.def',
3 %% generated with the docstrip utility.
5 %% The original source files were:
7 %% hyperref.dtx (with options: `dvips')
9 %% File: hyperref.dtx Copyright 1995-2001 Sebastian Rahtz,
10 %% RCS: $Id: hyperref.dtx 6.71 2000/10/04 rahtz Exp rahtz $
12 %% This file is part of the `Hyperref Bundle'.
13 %% -------------------------------------------
15 %% It may be distributed under the conditions of the LaTeX Project Public
16 %% License, either version 1.2 of this license or (at your option) any
17 %% later version. The latest version of this license is in
18 %% http://www.latex-project.org/lppl.txt
19 %% and version 1.2 or later is part of all distributions of LaTeX
20 %% version 1999/12/01 or later.
22 %% The list of all files belonging to the `Hyperref Bundle' is
23 %% given in the file `manifest.txt'.
25 \ProvidesFile{hdvips.def}
27 Hyperref driver for dvips]
29 \def\@pdfproducer{dvips + Distiller}
30 \def\literalps@out#1{\special{ps:SDict begin #1 end}}%
31 \def\headerps@out#1{\special{! #1}}%
32 \providecommand\@pdfborder{0 0 12}
33 \providecommand\@pdfview{XYZ}
34 \providecommand\@pdfviewparams{ H.V}
37 /DvipsToPDF { 72.27 mul Resolution div } def
38 /PDFToDvips { 72.27 div Resolution mul } def
39 /HyperBorder { 1 PDFToDvips } def
40 /H.V {pdf@hoff pdf@voff null} def
41 /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def
44 HyperBorder add /pdf@lly exch def
45 dup DvipsToPDF /pdf@hoff exch def
46 HyperBorder sub /pdf@llx exch def
51 PDFToDvips /HyperBaseDvips exch def
53 HyperBaseDvips sub /pdf@ury exch def
59 vsize 72 sub exch DvipsToPDF
60 HyperBasePt sub % baseline skip
61 sub /pdf@voff exch def
65 HyperBorder sub /pdf@ury exch def
66 HyperBorder add /pdf@urx exch def
67 currentpoint exch pop vsize 72 sub
68 exch DvipsToPDF sub /pdf@voff exch def
72 {userdict /pdfmark systemdict /cleartomark get put} if
76 \ifx\special@paper\@empty\else
77 \special{papersize=\special@paper}%
82 %% End of file `hdvips.def'.