PyPDF2: can it update data stream?

走远了吗. 提交于 2019-12-08 22:12:29

In case someone has a similar problem, just wanted to share my solution --

I don't find a way to update the stream data, however, I am able to get rid of the "ghost" shape by completely removing that object within the annotation object.

annot.getObject().pop('/AP')

Without that ghost shape, the annotation polygon displays properly! Not sure why the use of '/AP' object though. But it looks alright.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!