问题 Using Python3, and Poppler, I can load files with new_from_file without problem, but new_from_data is problematic. Here is the code which is obviously a simple test, because it does not make sense to read from file and then use new_from_data, since new_from_file works perfectly, but I could not post here the full code generating the pdf file. from gi.repository import Poppler, Gtk def draw(widget, cr): # set background. cr.set_source_rgb(0.7, 0.6, 0.5) cr.paint() # set page background cr.set