Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 416545
Collapse All | Expand All

(-)source/texk/web2c/luatexdir/lua/lepdflib.cc (-8 / +6 lines)
Lines 151-157 static int l_new_Annot(lua_State * L) Link Here
151
        pdfdoc_changed_error(L);
151
        pdfdoc_changed_error(L);
152
    uout = new_Annot_userdata(L);
152
    uout = new_Annot_userdata(L);
153
    uout->d =
153
    uout->d =
154
        new Annot((XRef *) uxref->d, (Dict *) udict->d, (Catalog *) ucatalog->d,
154
        new Annot(udict->pd->doc, (Dict *) udict->d,
155
                  (Object *) uref->d);
155
                  (Object *) uref->d);
156
    uout->atype = ALLOC_LEPDF;
156
    uout->atype = ALLOC_LEPDF;
157
    uout->pc = uxref->pc;
157
    uout->pc = uxref->pc;
Lines 173-179 static int l_new_Annots(lua_State * L) Link Here
173
        pdfdoc_changed_error(L);
173
        pdfdoc_changed_error(L);
174
    uout = new_Annots_userdata(L);
174
    uout = new_Annots_userdata(L);
175
    uout->d =
175
    uout->d =
176
        new Annots((XRef *) uxref->d, (Catalog *) ucatalog->d,
176
        new Annots(uannotsobj->pd->doc,
177
                   (Object *) uannotsobj->d);
177
                   (Object *) uannotsobj->d);
178
    uout->atype = ALLOC_LEPDF;
178
    uout->atype = ALLOC_LEPDF;
179
    uout->pc = uxref->pc;
179
    uout->pc = uxref->pc;
Lines 363-369 static int m_##type##__tostring(lua_Stat Link Here
363
// Annot
363
// Annot
364
364
365
m_poppler_get_BOOL(Annot, isOk);
365
m_poppler_get_BOOL(Annot, isOk);
366
m_poppler_get_OBJECT(Annot, getAppearance);
366
m_poppler_get_OBJECT(Annot, getAppearanceResDict);
367
m_poppler_get_poppler(Annot, AnnotBorder, getBorder);
367
m_poppler_get_poppler(Annot, AnnotBorder, getBorder);
368
368
369
static int m_Annot_match(lua_State * L)
369
static int m_Annot_match(lua_State * L)
Lines 398-404 static int m_Annot__gc(lua_State * L) Link Here
398
398
399
static const struct luaL_Reg Annot_m[] = {
399
static const struct luaL_Reg Annot_m[] = {
400
    {"isOk", m_Annot_isOk},
400
    {"isOk", m_Annot_isOk},
401
    {"getAppearance", m_Annot_getAppearance},
401
    {"getAppearanceResDict", m_Annot_getAppearanceResDict},
402
    {"getBorder", m_Annot_getBorder},
402
    {"getBorder", m_Annot_getBorder},
403
    {"match", m_Annot_match},
403
    {"match", m_Annot_match},
404
    {"__tostring", m_Annot__tostring},
404
    {"__tostring", m_Annot__tostring},
Lines 1249-1255 static int m_Object_getType(lua_State * Link Here
1249
1249
1250
static int m_Object_getTypeName(lua_State * L)
1250
static int m_Object_getTypeName(lua_State * L)
1251
{
1251
{
1252
    char *s;
1252
    const char *s;
1253
    udstruct *uin;
1253
    udstruct *uin;
1254
    uin = (udstruct *) luaL_checkudata(L, 1, M_Object);
1254
    uin = (udstruct *) luaL_checkudata(L, 1, M_Object);
1255
    if (uin->pd != NULL && uin->pd->pc != uin->pc)
1255
    if (uin->pd != NULL && uin->pd->pc != uin->pc)
Lines 1936-1942 static int m_Page_getLinks(lua_State * L Link Here
1936
    if ((uin->pd != NULL && uin->pd->pc != uin->pc)
1936
    if ((uin->pd != NULL && uin->pd->pc != uin->pc)
1937
        || (ucat->pd != NULL && ucat->pd->pc != ucat->pd->pc))
1937
        || (ucat->pd != NULL && ucat->pd->pc != ucat->pd->pc))
1938
        pdfdoc_changed_error(L);
1938
        pdfdoc_changed_error(L);
1939
    links = ((Page *) uin->d)->getLinks((Catalog *) ucat->d);
1939
    links = ((Page *) uin->d)->getLinks();
1940
    if (links != NULL) {
1940
    if (links != NULL) {
1941
        uout = new_Links_userdata(L);
1941
        uout = new_Links_userdata(L);
1942
        uout->d = links;
1942
        uout->d = links;
Lines 2531-2537 m_poppler_get_INT(XRef, getNumObjects); Link Here
2531
m_poppler_get_INT(XRef, getRootNum);
2531
m_poppler_get_INT(XRef, getRootNum);
2532
m_poppler_get_INT(XRef, getRootGen);
2532
m_poppler_get_INT(XRef, getRootGen);
2533
// getStreamEnd
2533
// getStreamEnd
2534
m_poppler_get_INT(XRef, getSize);
2535
// getEntry
2534
// getEntry
2536
m_poppler_get_poppler(XRef, Object, getTrailerDict);
2535
m_poppler_get_poppler(XRef, Object, getTrailerDict);
2537
2536
Lines 2558-2564 static const struct luaL_Reg XRef_m[] = Link Here
2558
    {"getRootNum", m_XRef_getRootNum},
2557
    {"getRootNum", m_XRef_getRootNum},
2559
    {"getRootGen", m_XRef_getRootGen},
2558
    {"getRootGen", m_XRef_getRootGen},
2560
    //
2559
    //
2561
    {"getSize", m_XRef_getSize},
2562
    {"getTrailerDict", m_XRef_getTrailerDict},
2560
    {"getTrailerDict", m_XRef_getTrailerDict},
2563
    {"__tostring", m_XRef__tostring},
2561
    {"__tostring", m_XRef__tostring},
2564
    {NULL, NULL}                // sentinel
2562
    {NULL, NULL}                // sentinel

Return to bug 416545