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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -