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
  • Brite
  • 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 - Status | 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 2.5k 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 Online
    timconsidineT Online
    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.

    Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

    1 Reply Last reply
    1
    • timconsidineT Online
      timconsidineT Online
      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.

      Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

      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 Online
          timconsidineT Online
          timconsidine
          App Dev
          wrote on last edited by
          #4

          @robi nothing as far as I can see

          @froodle can you clarify ?

          Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

          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 Online
              timconsidineT Online
              timconsidine
              App Dev
              wrote on last edited by
              #6

              Wow great investigation, thank you

              Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

              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 Online
                timconsidineT Online
                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.

                Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                1 Reply Last reply
                4
                • timconsidineT Online
                  timconsidineT Online
                  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

                  Indie app dev, scratching my itches, lover of Cloudron PaaS, communityapps.appx.uk

                  1 Reply Last reply
                  5
                  • nebulonN nebulon marked this topic as a question on
                  • nebulonN nebulon has marked this topic as solved on

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  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