I just want to add that I was getting this error, and nothing would fix it until I changed the Output
destination parameter from F
to FI
.
In other words, I have to output to both file and inline.
Output('doc.pdf', 'I')
to
Output('doc.pdf', 'FI')
I have no idea why this made the difference, but it fixed the error for me...