• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 May 5, 2017, 10:29 AM

    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?

    B 1 Reply Last reply May 5, 2017, 12:17 PM Reply Quote 0
    • B Offline
      broberg Project Sponsor @Guest
      last edited by May 5, 2017, 12:17 PM

      @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 May 5, 2017, 2:22 PM

        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.

        B 1 Reply Last reply May 5, 2017, 2:40 PM Reply Quote 0
        • B Offline
          broberg Project Sponsor @Guest
          last edited by broberg May 5, 2017, 3:11 PM May 5, 2017, 2:40 PM

          @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
          1 / 1
          • First post
            1/4
            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