summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/back-pdf.lua
blob: 8886967e0c5b74c4499e4153097ddaa17854e775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
if not modules then modules = { } end modules ['back-pdf'] = {
    version   = 1.001,
    comment   = "companion to back-pdf.mkiv",
    author    = "Hans Hagen, PRAGMA-ADE, Hasselt NL",
    copyright = "PRAGMA ADE / ConTeXt Development Team",
    license   = "see context related readme files"
}

-- We hide the pdf table from users so that we can guarantee no interference with
-- the way we manage resources, info, etc. Users should use the \type {lpdf}
-- interface instead. If needed I will provide replacement functionality.

interfaces.implement {
    name      = "setpdfcompression",
    arguments = { "integer", "integer" },
    actions   = lpdf.setcompression,
}

if CONTEXTLMTXMODE == 0 then
    updaters.apply("backend.update.pdf")
    updaters.apply("backend.update.lpdf")
    updaters.apply("backend.update.tex")
    updaters.apply("backend.update")
end

backends.install("pdf")