python - Load a PDF in a ActiveX widget -


i trying load pdf qaxwidget:

self.axwidget = qaxcontainer.qaxwidget() self.axwidget.setproperty("geometry", qtcore.qrect(630, 20, 501, 651)) self.axwidget.setcontrol("adobe pdf reader") self.axwidget.dynamiccall("loadfile(const qstring)", "test.pdf") 

however, loads empty gray background: enter image description here

i've been searching alternatives, external libraries, python pdf-to-png libraries , load image, etc. every result found far seems overkill task.

so, since qt supports activex controls, can check working example, or specific documentation dynamiccalls python in order load pdf inside qaxwidget?

i need read-only data, image of work.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -