Skip to main content
Explorer
March 6, 2025
Question

how to create and open pdf in qt using stm32mp157d-dk1

  • March 6, 2025
  • 2 replies
  • 1175 views

I have created a button in qt when I click on the button it has to create a pdf and also display the pdf.

i am developing an application where i have to store the user data in pdf called report and later view it 

please give me the steps on how to perform this and any examples related to it 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    March 10, 2025

    Hello @Sharan ,
    STMicroelectronics brings the necessary support to develop and use your Qt application to make it run on the target, but this question sounds more like a Qt specific topic.

    I think the Qt official documentation or Qt forum could help you more than we can.

    Kind regards,
    Erwan.

    SharanAuthor
    Explorer
    March 24, 2025

    how to open a pdf file from my terminal in stm32mp157d-dk1

    root@stm32mp15-disco:~# xdg open mydoc.pdf

    -sh: xdg: not found

    root@stm32mp15-disco:~# okular mydoc.pdf

    -sh: okular: not found

    root@stm32mp15-disco:~# evince mydoc.pdf

    -sh: evince: not found

    root@stm32mp15-disco:~# mupdf mydoc.pdf

    -sh: mupdf: not found

    root@stm32mp15-disco:~#

    Graduate
    March 31, 2025

    Seems there is an example how to read/show pdf in Qt:

    https://doc.qt.io/qt-6/qtpdf-pdfviewer-example.html

    For creating PDFs, there are tons of libraries, some of them open-source.

    SharanAuthor
    Explorer
    April 15, 2025

    I am using QT 5.15.13 for my stm32mp157d-dk1  and the image does not have any pdf opener and i have upgraded my qt to 6.7.3 can i use this version for developing application because when i use ssh and connect to the stm32mp and when i type qmake it shows 

    using qt version 5.15.13 in /usr/lib