On Wed, Mar 31, 2021 at 5:10 PM Philip Taylor <[email protected]> wrote: > > for k, v in pairs (pdfe.dictionarytotable (doc.Pages [1])) do
Here, you are iterating over a /Page dictionary (doc.Pages[1]), which is a real dictionary. No issues when iterating over real dictionaries with pdfe.dictionarytotable(). But the /Contents entry of this dictionary refers to a stream. And the first part of a stream object is a dictionary. But you cannot use pdfe.dictionarytotable() in this case. Andreas
