%% $Id: syntaxform.pl 742 2016-04-25 17:30:55Z karl $
%% This is the list of new or extended primitives provided by pdftex.
%% Don't edit this file, as it is now auto-generated from the
%% pdfTeX manual source pdftex-t.tex (and the generated
%% pdftex-syntax.tex) by the script syntaxform.awk.
%% Syntax rule conventions borrowed from `TeXbook naruby' by Petr Olsak.

%% Integer registers:
\efcode <font> <8-bit number>                           (integer)
\knaccode <font> <8-bit number>                         (integer)
\knbccode <font> <8-bit number>                         (integer)
\knbscode <font> <8-bit number>                         (integer)
\lpcode <font> <8-bit number>                           (integer)
\pdfadjustinterwordglue                                 (integer)
\pdfadjustspacing                                       (integer)
\pdfappendkern                                          (integer)
\pdfcompresslevel                                       (integer)
\pdfdecimaldigits                                       (integer)
\pdfdraftmode                                           (integer)
\pdfforcepagebox                                        (integer)
\pdfgamma                                               (integer)
\pdfgentounicode                                        (integer)
\pdfimageapplygamma                                     (integer)
\pdfimagegamma                                          (integer)
\pdfimagehicolor                                        (integer)
\pdfimageresolution                                     (integer)
\pdfinclusioncopyfonts                                  (integer)
\pdfinclusionerrorlevel                                 (integer)
\pdfinfoomitdate                                        (integer)
\pdfmajorversion                                        (integer)
\pdfminorversion                                        (integer)
\pdfobjcompresslevel                                    (integer)
\pdfomitcharset                                         (integer)
\pdfoutput                                              (integer)
\pdfpagebox                                             (integer)
\pdfpkresolution                                        (integer)
\pdfprependkern                                         (integer)
\pdfprotrudechars                                       (integer)
\pdfsuppressptexinfo                                    (integer)
\pdfsuppresswarningdupdest                              (integer)
\pdfsuppresswarningdupmap                               (integer)
\pdfsuppresswarningpagegroup                            (integer)
\pdftracingfonts                                        (integer)
\pdfuniqueresname                                       (integer)
\rpcode <font> <8-bit number>                           (integer)
\shbscode <font> <8-bit number>                         (integer)
\stbscode <font> <8-bit number>                         (integer)
\tagcode <font> <8-bit number>                          (integer)

%% Read-only integers:
\pdfelapsedtime                                         (read-only integer)
\pdflastannot                                           (read-only integer)
\pdflastlink                                            (read-only integer)
\pdflastobj                                             (read-only integer)
\pdflastxform                                           (read-only integer)
\pdflastximage                                          (read-only integer)
\pdflastximagecolordepth                                (read-only integer)
\pdflastximagepages                                     (read-only integer)
\pdflastxpos                                            (read-only integer)
\pdflastypos                                            (read-only integer)
\pdfrandomseed                                          (read-only integer)
\pdfretval                                              (read-only integer)
\pdfshellescape                                         (read-only integer)
\pdftexversion                                          (read-only integer)

%% Dimen registers:
\pdfdestmargin                                          (dimen)
\pdfeachlinedepth                                       (dimen)
\pdfeachlineheight                                      (dimen)
\pdffirstlineheight                                     (dimen)
\pdfhorigin                                             (dimen)
\pdfignoreddimen                                        (dimen)
\pdflastlinedepth                                       (dimen)
\pdflinkmargin                                          (dimen)
\pdfpageheight                                          (dimen)
\pdfpagewidth                                           (dimen)
\pdfpxdimen                                             (dimen)
\pdfthreadmargin                                        (dimen)
\pdfvorigin                                             (dimen)

%% Token registers:
\pdfpageattr                                            (tokens)
\pdfpageresources                                       (tokens)
\pdfpagesattr                                           (tokens)
\pdfpkmode                                              (tokens)

%% Expandable commands:
\expanded <tokens>                                      (expandable)
\ifincsname                                             (expandable)
\ifpdfabsdim                                            (expandable)
\ifpdfabsnum                                            (expandable)
\ifpdfprimitive <control sequence>                      (expandable)
\input <general text>                                   (expandable)
\leftmarginkern <box number>                            (expandable)
\pdfcolorstackinit [page] [direct] <general text>       (expandable)
\pdfcreationdate                                        (expandable)
\pdfescapehex <general text>                            (expandable)
\pdfescapename <general text>                           (expandable)
\pdfescapestring <general text>                         (expandable)
\pdffiledump [offset <integer>] [length <integer>] <general text> (expandable)
\pdffilemoddate <general text>                          (expandable)
\pdffilesize <general text>                             (expandable)
\pdffontname <font>                                     (expandable)
\pdffontobjnum <font>                                   (expandable)
\pdffontsize <font>                                     (expandable)
\pdfincludechars <font> <general text>                  (expandable)
\pdfinsertht <integer>                                  (expandable)
\pdflastmatch <integer>                                 (expandable)
\pdfmatch [icase] [subcount <integer>] <general text> <general text> (expandable)
\pdfmdfivesum [file] <general text>                     (expandable)
\pdfnormaldeviate                                       (expandable)
\pdfpageref <page number>                               (expandable)
\pdfstrcmp <general text> <general text>                (expandable)
\pdftexbanner                                           (expandable)
\pdftexrevision                                         (expandable)
\pdfunescapehex <general text>                          (expandable)
\pdfuniformdeviate <number>                             (expandable)
\pdfxformname <object number>                           (expandable)
\pdfximagebbox <integer> <integer>                      (expandable)
\rightmarginkern <box number>                           (expandable)

%% General commands:
\letterspacefont <control sequence> <font> <integer>
\pdfannot <annot type spec>                             (h, v, m)
\pdfcatalog <general text> [openaction <action spec>]
\pdfcolorstack <stack number> <stack action> <general text>
\pdfcopyfont <control sequence> <font>
\pdfdest <dest spec>                                    (h, v, m)
\pdfendlink                                             (h, m)
\pdfendthread                                           (v, m)
\pdffakespace
\pdffontattr <font> <general text>
\pdffontexpand <font> <stretch> <shrink> <step> [autoexpand]
\pdfglyphtounicode <general text> <general text>
\pdfinfo <general text>
\pdfinterwordspaceoff
\pdfinterwordspaceon
\pdfliteral [<pdfliteral spec>] <general text>          (h, v, m)
\pdfmapfile <map spec>
\pdfmapline <map spec>
\pdfnames <general text>
\pdfnobuiltintounicode <font>
\pdfnoligatures <font>
\pdfobj <object type spec>                              (h, v, m)
\pdfoutline [<attr spec>] <action spec> [count <integer>] <general text> (h, v, m)
\pdfprimitive <control sequence>
\pdfrefobj <object number>                              (h, v, m)
\pdfrefxform <object number>                            (h, v, m)
\pdfrefximage <object number>
\pdfresettimer
\pdfrestore
\pdfsave
\pdfsavepos                                             (h, v, m)
\pdfsetmatrix
\pdfsetrandomseed <number>
\pdfstartlink [<rule spec>] [<attr spec>] <action spec> (h, m)
\pdfthread [<rule spec>] [<attr spec>] <id spec>        (h, v, m)
\pdftrailer <general text>
\pdftrailerid <general text>
\pdftstartthread [<rule spec>] [<attr spec>] <id spec>  (v, m)
\pdfxform [<attr spec>] [<resources spec>] <box number> (h, v, m)
\pdfximage [<rule spec>] [<attr spec>] [<page spec>] [<colorspace spec>] [<pdf box spec>] <general text> (h, v, m)
\quitvmode
\special {pdf: <text> }
\special {pdf:direct: <text> }
\special {pdf:page: <text> }
\vadjust [<pre spec>] <filler> { <vertical mode material> } (h, m)

%% Syntax rules:
<general text> --> { <balanced text> }
<attr spec> --> attr <general text>
<resources spec> --> resources <general text>
<rule spec> --> (width | height | depth) <dimen> [<rule spec>]
<object type spec> --> reserveobjnum
                     | [useobjnum <number>] [stream [<attr spec>]] <object contents>
<annot type spec> --> reserveobjnum
                    | [useobjnum <number>] [<rule spec>] <general text>
<object contents> --> <file spec>
                    | <general text>
<xform attr spec> --> [<attr spec>] [<resources spec>]
<image attr spec> --> [<rule spec>] [<attr spec>] [<page spec>] [<colorspace spec>] [<pdf box spec>]
<outline spec> --> [<attr spec>] <action spec> [count <number>] <general text>
<action spec> --> user <user-action spec>
                | goto <goto-action spec>
                | thread <thread-action spec>
<user-action spec> --> <general text>
<goto-action spec> --> <numid>
                     | [<file spec>] <nameid>
                     | [<file spec>] [<page spec>] <general text>
                     | <file spec> <nameid> <newwindow spec>
                     | <file spec> [<page spec>] <general text> <newwindow spec>
<thread-action spec> --> [<file spec>] <numid>
                       | [<file spec>] <nameid>
<colorspace spec> --> colorspace <number>
<pdf box spec> --> mediabox | cropbox | bleedbox | trimbox | artbox
<map spec> --> { [<map modifier>] <balanced text> }
<map modifier> --> + | = | -
<numid> --> num <number>
<nameid> --> name <general text>
<newwindow spec> --> newwindow | nonewwindow
<dest spec> --> <numid> <dest type>
              | <nameid> <dest type>
<dest type> --> xyz [zoom <number>]
              | fitr <rule spec>
              | fitbh
              | fitbv
              | fitb
              | fith
              | fitv
              | fit
<thread spec> --> [<rule spec>] [<attr spec>] <id spec>
<id spec> --> <numid> | <nameid>
<file spec> --> file <general text>
<page spec> --> page <number>
<expand spec> --> <stretch> <shrink> <step> [autoexpand]
<stretch> --> <number>
<shrink> --> <number>
<step> --> <number>
<pre spec> --> pre
<pdfliteral spec> --> direct | page
<pdfspecial spec> --> { [<pdfspecial id> [<pdfspecial modifier>]] <balanced text> }
<pdfspecial id> --> pdf: | PDF:
<pdfspecial modifier> --> direct:
<stack action> --> set | push | pop | current
