Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QtPdf open named location
Forum Updated to NodeBB v4.3 + New Features

QtPdf open named location

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 191 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chruetli
    wrote on last edited by
    #1

    Hi
    I'm using the QtPdf from version 5.15. Using the Wiki the build succeeded straight forward!

    • I need to open a pdf at a user defined location. The idea was to pass a the nameddest as an attribute, but this does not work as expected...
    Image {
            id: pdfView
            source: "file:///myDrive/mydocument-1524150305.pdf#nameddest=Chapter3" // opens only first page...
            ...
        }
    
    • I would also like to open the full pdf but I cannot find an exmple who to do this from qml...

    Best regards
    Mario

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chruetli
      wrote on last edited by
      #2

      I found the examples in qml/QtQuick/Pdf/qml/ how to show multiple pages:

      • PdfMultiPageView.qml
      • PdfPageView.qml
      • PdfScrollablePageView.qml

      But I'm still looking for a solution how to navigate to a specific location inside the document (e.g. bookmark, nameddest, page)

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved