MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Module to show an PDF document on the MM2

    Scheduled Pinned Locked Moved Requests
    4 Posts 2 Posters 2.5k Views 1 Watching
    Loading More Posts
    • 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.
    • ? Offline
      A Former User
      last edited by

      I would like to show a shiftplan, which is a .PDF document i regularly receive from my company on the MM2. So everybody in my family would see when i have to go working. i could transfer this infromation t a calendar but thats a lot of work and for me compleetely sensless.
      Any idea how to solve or anybody that can develop such a module?

      brobergB 1 Reply Last reply Reply Quote 0
      • brobergB Offline
        broberg Project Sponsor @Guest
        last edited by

        @reneSwiss I don’t think chromium has support to view a pdf.

        Simplest route to take would be to convert the pdf to a jpeg image. And then display the jpeg on the mirror.

        1 Reply Last reply Reply Quote 1
        • ? Offline
          A Former User
          last edited by

          sound’s bad.
          I’m only woundering that, if i call a link to a .pdf in the browser, the content is shown. To me this means, that chromium does support pdf. Am i wrong?
          The solution to convert to jpg is what i do at the moment, but it would be much more confortable to directly show the pdf.

          brobergB 1 Reply Last reply Reply Quote 0
          • brobergB Offline
            broberg Project Sponsor @Guest
            last edited by broberg

            @reneSwiss do note chrome and chromium is not exatly the same however.

            Most normal browsers have a built in viewer for pdf, but if you are trying to display it on MM2 that is made on electron that uses chromium I’m fairly certain it doesn’t display pdf documents. Byt I could be wrong, can’t test it since I’m not at home.

            Edit, looks like electron 1.6.4 and above have support for pdf viewing. https://github.com/electron/electron/releases/tag/v1.6.4

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy