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:
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
Post a Comment