QPdfDocument and QPdfView : display PDF annotation and highlight
-
Hi,
I use QPdfView and QPdfDocument to display PDF files inside my application.
I would like to show text which is highlighted and possibily annotations who are in the PDF file. When I load a PDF file with annotations and highlighted text, the PDF is correctly rendered but annotation nor highlight are not showed.
I looked in the documentation and found the QPdfDocument's render function which take QPdfDocumentRenderOptions option which seems to fit my need. But its returns a QImage. I would like to render directly my PDF inside my QPdfView.
Is there any solution ?
-
Hi,
I'm not sure if I understand, but, you probably have the same situation as in Render PDF Page with QtPDF with its text, in which case the answer is most likely "no, not with Qt".
-
Thank you for your response... very annoying !
-
you may need a pdf annotation app, such as Adobe Acrobat, Xodo, or Foxit. pctechtest