Skip to content

Commit 4e8df2e

Browse files
committed
manpage: added information about unsupported PDF specials
1 parent 30c16f6 commit 4e8df2e

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

doc/dvisvgm.1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
.\" Title: dvisvgm
33
.\" Author: Martin Gieseking <martin.gieseking@uos.de>
44
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
5-
.\" Date: 2025-01-04
5+
.\" Date: 2025-01-21
66
.\" Manual: dvisvgm Manual
77
.\" Source: dvisvgm 3.4.3
88
.\" Language: English
99
.\"
10-
.TH "DVISVGM" "1" "2025\-01\-04" "dvisvgm 3\&.4\&.3" "dvisvgm Manual"
10+
.TH "DVISVGM" "1" "2025\-01\-21" "dvisvgm 3\&.4\&.3" "dvisvgm Manual"
1111
.\" -----------------------------------------------------------------
1212
.\" * Define some portability stuff
1313
.\" -----------------------------------------------------------------
@@ -947,7 +947,7 @@ If this option is given, dvisvgm does not expect a DVI but a PDF input file, and
947947
\fB\-\-page\fR
948948
can be used to select different pages, page ranges, and/or page sequences\&.
949949
.sp
950-
If a Ghostcript version < 10\&.01\&.0 is found, dvisvgm uses Ghostscript to process the PDF file\&. In this case, the conversion is realized by creating a single
950+
If a Ghostscript version < 10\&.01\&.0 is found, dvisvgm uses Ghostscript to process the PDF file\&. In this case, the conversion is realized by creating a single
951951
\fIpdffile\fR
952952
special command which is forwarded to dvisvgm\(cqs PostScript special handler\&. Therefore, this option is only available if dvisvgm was built with PostScript support enabled, and requires Ghostscript to be accessible\&. See option
953953
\fB\-\-libgs\fR
@@ -1423,7 +1423,7 @@ and
14231423
\fIy\fR
14241424
represent the current coordinates\&. Invalid operations, like divisions by zero, lead to an error message on the console\&. Example:
14251425
\fB{?(\-10*(x+2y)\-5)}\fR
1426-
is a valid expresssion and expands to the corresponding numeric string\&.
1426+
is a valid expression and expands to the corresponding numeric string\&.
14271427
.RE
14281428
.PP
14291429
\fBdvisvgm:rawdef\fR \fItext\fR
@@ -1638,7 +1638,7 @@ on the command\-line\&. Otherwise, dvisvgm ignores them and computes tight bound
16381638
pdfTeX and dvipdfmx introduced several special commands related to the generation of PDF files\&. Currently, only
16391639
\fIpdf:mapfile\fR,
16401640
\fIpdf:mapline\fR,
1641-
\fIpdf:pagesize\fR, and PDF hyperlink specials are supported by dvisvgm\&. The latter are the PDF pendants to the HTML HyperTeX specials generated by the hyperref package in PDF mode\&.
1641+
\fIpdf:pagesize\fR, and PDF hyperlink specials are supported by dvisvgm\&. The latter are the PDF pendants to the HTML HyperTeX specials\&. They are generated by the hyperref package in PDF mode, for example\&. If a DVI page contains unsupported PDF specials, dvisvgm prints a warning message showing the number of ignored special commands\&.
16421642
.sp
16431643
\fIpdf:pagesize\fR
16441644
is similar to the
@@ -1660,7 +1660,7 @@ pdfTeX user manual (\m[blue]https://ctan.org/pkg/pdftex\m[])\&.
16601660
.RS 4
16611661
The famous DVI driver
16621662
\fIdvips\fR (\m[blue]https://www.tug.org/texinfohtml/dvips.html\m[])
1663-
introduced its own set of specials in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents\&. One aim of dvisvgm is to completely evaluate all PostScript fragments and to convert as many of them as possible to SVG\&. In contrast to dvips, dvisvgm uses floating point arithmetics to compute the precise position of each graphic element, i\&.e\&. it doesn\(cqt round the coordinates\&. Therefore, the relative locations of the graphic elements may slightly differ from those computed by dvips\&.
1663+
introduced its own set of specials in order to embed PostScript code into DVI files, which greatly improves the capabilities of DVI documents\&. One aim of dvisvgm is to completely evaluate all PostScript fragments and to convert as many of them as possible to SVG\&. In contrast to dvips, dvisvgm uses floating point arithmetic to compute the precise position of each graphic element, i\&.e\&. it doesn\(cqt round the coordinates\&. Therefore, the relative locations of the graphic elements may slightly differ from those computed by dvips\&.
16641664
.sp
16651665
Since PostScript is a rather complex language, dvisvgm does not implement its own PostScript interpreter but relies on
16661666
Ghostscript (\m[blue]https://ghostscript.com\m[])

doc/dvisvgm.txt.in

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Martin Gieseking <@PACKAGE_BUGREPORT@>
2222
:man source: dvisvgm
2323
:man version: @VERSION@
2424
:man manual: dvisvgm Manual
25-
:revdate: 2025-01-04 12:28 +0100
25+
:revdate: 2025-01-21 19:13 +0100
2626

2727
Name
2828
----
@@ -1013,7 +1013,10 @@ the command-line. Otherwise, dvisvgm ignores them and computes tight bounding bo
10131013
*pdf*::
10141014
pdfTeX and dvipdfmx introduced several special commands related to the generation of PDF files. Currently,
10151015
only 'pdf:mapfile', 'pdf:mapline', 'pdf:pagesize', and PDF hyperlink specials are supported by dvisvgm.
1016-
The latter are the PDF pendants to the HTML HyperTeX specials generated by the hyperref package in PDF mode.
1016+
The latter are the PDF pendants to the HTML HyperTeX specials. They are generated by the hyperref package in
1017+
PDF mode, for example.
1018+
If a DVI page contains unsupported PDF specials, dvisvgm prints a warning message showing the number of
1019+
ignored special commands.
10171020
+
10181021
'pdf:pagesize' is similar to the 'papersize' special (see above) which specifies the size of the current
10191022
and all following pages. In order to actually apply the extents to the generated SVG files,

0 commit comments

Comments
 (0)