[luatex] Problems with page_objnum_provider / PDF cannot be read by Adobe Acrobat

Patrick Gundlach patrick at gundla.ch
Tue Oct 22 16:09:14 CEST 2019

Hi all,

this code creates a PDF with 100 pages which looks fine in Skim (a Mac PDF viewer), but fails to render in Adobe Acrobat.

When I set the number of pages to 10, everything is fine.

(Everything > 10 seems to break Adobe Acrobat - current release)


   local list
   local n = 0
       if not list then
           list = { }
           for i=1,tex.count[0] do
               list[i] = pdf.getpageref(i)
           list[#list],   list[1] = list[1], list[#list]
           list[#list-1], list[2] = list[2], list[#list-1]
       n = n + 1
       return list[n]


       \startTEXpage #1 \stopTEXpage


(PDF available at https://download.speedata.de/private/test.pdf)

More information about the luatex mailing list