Load different Welcome.pdf
-
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 tostatic
Yes, I can open one manually, just trying to reduce manual steps for users. -
timconsidine App Devwrote on Nov 2, 2023, 10:18 PM last edited by timconsidine Nov 2, 2023, 10:19 PM
Oh, and supplemental question : there is a folder
templates
but I can't see any info on how to use this. -
what does its github indicate?
-
-
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.
-
Wow great investigation, thank you
-
@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. -
Posted an issue for this in upstream repo.
https://github.com/Frooodle/Stirling-PDF/issues/461 -
-
4/8