cosErrExpectedStream : Expected a stream object
I'm creating pdf files using pdfkit library and node js.
Under certain circumstances one of the pages I create in the pdf becomes corrupted.
And I'm not able to open that page with AI.
Which is reporting a error :
Acrobat PDF File Format is having difficulties. Expected a stream object.
But I can open the other pages in the file, so the whole file isn't corrupted. Something weird happens to that particular page.
This is happening apparently randomly. Same file sometime generates fully sometimes not. Some other are succcessfully created.
From Adobe suite perspective what does normally determine this kind of error message?