u-fischer / newpax

12 stars 3 forks source link

newpax fails on some MS-Word generated pdfs #10

Closed vbeffara closed 2 years ago

vbeffara commented 2 years ago

Hello again,

On my system with uptodate newpax, I get a failure when I try to read the attached file toto.pdf

Error message:

newpax.lua:383: attempt to index a nil value (field '?')
stack traceback:
    ./newpax.lua:383: in upvalue 'outputENTRY_dest'
    ./newpax.lua:465: in upvalue '__writepax'
    ./newpax.lua:507: in function 'newpax.writepax'
    [\directlua]:1: in main chunk.

This is when running the following .tex file with lualatex:

\documentclass{article}
\directlua{
    require("newpax")
    newpax.writepax("toto")
    newpax.writenewpax("toto")
}
\begin{document}
\end{document}

(It is not my pdf so I have no more information about its origin than the metadata - what I am attaching here is one page extracted using pdftk from a larger pdf that was itself created by MS Word and which provokes the same error. But I do not have the original .doc file.)

CSchoel commented 2 years ago

Same here for two of my journal papers (so I cannot say how they were generated and have no access to the intermediate files used by the journal):

InaMo HH-modelica

The error is exactly the same except for the last line number.

/usr/share/texmf-dist/tex/latex/newpax/newpax.lua:383: attempt to index a nil value (field '?')
stack traceback:
    /usr/share/texmf-dist/tex/latex/newpax/newpax.lua:383: in upvalue 'outputENTRY_dest'
    /usr/share/texmf-dist/tex/latex/newpax/newpax.lua:465: in upvalue '__writepax'
    /usr/share/texmf-dist/tex/latex/newpax/newpax.lua:511: in function 'newpax.writenewpax'
    [\directlua]:1: in main chunk.
u-fischer commented 2 years ago

this should be resolved with the update.