Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Stirling-PDF
  3. Load different Welcome.pdf

Load different Welcome.pdf

Scheduled Pinned Locked Moved Solved Stirling-PDF
8 Posts 2 Posters 1.4k Views 2 Watching
  • 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.
  • timconsidineT Offline
    timconsidineT Offline
    timconsidine
    App Dev
    wrote on last edited by
    #1

    When clicking View PDF, a sample Welcome.pdf is opened.
    Can I change this ?
    Can't see anything in /app/data/customFiles
    Tried uploading one to static
    Yes, I can open one manually, just trying to reduce manual steps for users.

    1 Reply Last reply
    1
    • timconsidineT Offline
      timconsidineT Offline
      timconsidine
      App Dev
      wrote on last edited by timconsidine
      #2

      Oh, and supplemental question : there is a folder templates but I can't see any info on how to use this.

      1 Reply Last reply
      0
      • robiR Offline
        robiR Offline
        robi
        wrote on last edited by
        #3

        what does its github indicate?

        Conscious tech

        timconsidineT 1 Reply Last reply
        0
        • robiR robi

          what does its github indicate?

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by
          #4

          @robi nothing as far as I can see

          @froodle can you clarify ?

          1 Reply Last reply
          0
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by robi
            #5

            For some reason it's put into the .jar file itself

            /app/code# unzip -t Stirling-PDF.jar |grep Welcome
                testing: BOOT-INF/classes/static/pdfjs/example/Welcome_old.pdf   OK
                testing: BOOT-INF/classes/static/pdfjs/example/Welcome.pdf   OK
            

            Last ditch, try putting it in the customFiles/static/pfdjs/ dir.

            So unless there's a config variable or setting to point it at someplace else, you'd have to modify the .jar file which needs a new package.

            Might help to ask upstream.

            Conscious tech

            timconsidineT 1 Reply Last reply
            4
            • timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by
              #6

              Wow great investigation, thank you

              1 Reply Last reply
              1
              • robiR robi

                For some reason it's put into the .jar file itself

                /app/code# unzip -t Stirling-PDF.jar |grep Welcome
                    testing: BOOT-INF/classes/static/pdfjs/example/Welcome_old.pdf   OK
                    testing: BOOT-INF/classes/static/pdfjs/example/Welcome.pdf   OK
                

                Last ditch, try putting it in the customFiles/static/pfdjs/ dir.

                So unless there's a config variable or setting to point it at someplace else, you'd have to modify the .jar file which needs a new package.

                Might help to ask upstream.

                timconsidineT Offline
                timconsidineT Offline
                timconsidine
                App Dev
                wrote on last edited by
                #7

                @robi said in Load different Welcome.pdf:

                try putting it in the customFiles/static/pfdjs/

                You're a genius ! 👍 thank you

                Putting a modified PDF called Welcome.pdf in /app/data/customFiles/static/pdfjs/example loads an alternative to the Stirling default.
                Great !

                Some documentation would be nice in the source repo.
                It's mostly self-explanatory, but this little gem should be known.

                1 Reply Last reply
                4
                • timconsidineT Offline
                  timconsidineT Offline
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #8

                  Posted an issue for this in upstream repo.
                  https://github.com/Frooodle/Stirling-PDF/issues/461

                  1 Reply Last reply
                  5
                  • nebulonN nebulon marked this topic as a question on
                  • nebulonN nebulon has marked this topic as solved on
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search