Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
https://stirlingpdf.com
MIT License
43.58k stars 3.54k forks source link

Why is customFiles/templates empty? No files? I need to overwrite them and customize html #1131

Closed pipuwong closed 5 months ago

pipuwong commented 5 months ago

About "Custom HTML (Overwrite by File)", two files (static and templates) in customFiles are empty, how do I overwrite them? I have set customHTMLFiles: true

Please tell me how to customize html and how to overwrite the original file? The problem I'm currently encountering is that I don't see any files that can be overwritten.Thanks!

My settings.yml:


security:
  enableLogin: false 
  csrfDisabled: true
  loginAttemptCount: 5 
  loginResetTimeMinutes : 120 

system:
  defaultLocale: 'en-US' 
  googlevisibility: true 
  enableAlphaFunctionality: false 
  showUpdate: true 
  showUpdateOnlyAdmin: true 
  customHTMLFiles: true 

ui:
  appName: Pipu's PDFTools 
  homeDescription: This is the pdf tool
  appNameNavbar: PDFTools 

endpoints:
  toRemove: [] 
  groupsToRemove: [] 

metrics:
  enabled: true 

My docker-compose.yml

version: '3.3'
services:
  stirling-pdf:
    image: frooodle/s-pdf:latest
    ports:
      - '22111:8080'
    volumes:
      - ./location/of/trainingData:/usr/share/tessdata #Required for extra OCR languages
      - ./location/of/extraConfigs:/configs
      - ./location/of/customFiles:/customFiles/
      - ./location/of/logs:/logs/
    environment:
      - DOCKER_ENABLE_SECURITY=false 
      - INSTALL_BOOK_AND_ADVANCED_HTML_OPS=false 
      - LANGS=zh_CN 
Frooodle commented 5 months ago

Yes it must be manually populated currently You would copy the files from src/main/resources/template etc

Frooodle commented 5 months ago

also your settings.yml looks odd I dont see customHTMLFiles and your ui part shouldnt have # before it if you want UI to be read correctly

pipuwong commented 5 months ago

also your settings.yml looks odd I dont see customHTMLFiles and your ui part shouldnt have # before it if you want UI to be read correctly

I have made the setting.yml more detailed. Sorry, I entered it wrong before.

pipuwong commented 5 months ago

Yes it must be manually populated currently You would copy the files from src/main/resources/template etc

thanks.