[NTG-context] pdfboxes (mkiv)

Peter Rolf indiego at gmx.net
Sun Mar 20 18:15:24 CET 2011


Hi Hans,

there is a typo in lpdf-mis.lua

local function pagespecification()
    local pageheight = tex.pdfpageheight
    local box = pdfarray { -- can be cached
        boxvalue(leftoffset),
        boxvalue(pageheight-topoffset-height),
                          ^^
                        should be "+"
        boxvalue(width-leftoffset),
        boxvalue(pageheight-topoffset),
    }
    lpdf.addtopageattributes("CropBox",box) -- mandate for rendering
    lpdf.addtopageattributes("TrimBox",box) -- mandate for pdf/x
 -- lpdf.addtopageattributes("BleedBox",box)
 -- lpdf.addtopageattributes("ArtBox",box)
end


I hate to use Acrobat for the pdf boxes, because it 'ruins' the PDF :-)

Regards,  Peter


More information about the ntg-context mailing list