source object with insert_pdf #3812
-
I have this error
with Inspired by #856, I got a workaround: use
But I don't really need source_doc to be converted to bytes. So I don't feel this is the right way to handle the issue. Do you know a better solution ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Outputting to some target ( In some way this had to happen in some similar way. If you feel better you could have reopened the doc using that bytes output 😉. Maybe also more stable for other cases ... |
Beta Was this translation helpful? Give feedback.
Outputting to some target (
tobytes()
is actually equivalent tosave()
) obviously was sufficient (caused by your garbage option) to encounter and correct the internal error.In some way this had to happen in some similar way. If you feel better you could have reopened the doc using that bytes output 😉. Maybe also more stable for other cases ...