logologo
시작
가이드
개발
플러그인
API
English
简体中文
日本語
한국어
Deutsch
Français
Español
Português
Русский
Italiano
Türkçe
Українська
Tiếng Việt
Bahasa Indonesia
ไทย
Polski
Nederlands
Čeština
العربية
עברית
हिन्दी
Svenska
시작
가이드
개발
플러그인
API
logologo
개요
구성 설명

템플릿 구문

기본 사용법
반복 처리

포맷터

개요
텍스트 포맷터
숫자 포맷터
통화 포맷터
날짜 포맷터
시간 간격 포맷터
배열 포맷터

고급 기능

조건문
고급 기능
자주 묻는 질문
적용 시나리오
Next Page구성 설명
TIP

이 문서는 AI로 번역되었습니다. 부정확한 내용이 있을 경우 영어 버전을 참조하세요

#템플릿 인쇄

This feature is provided by the commercial plugin «템플릿 인쇄», please purchase to use

#소개

템플릿 인쇄 플러그인은 Word, Excel, PowerPoint를 사용하여 템플릿 파일(.docx, .xlsx, .pptx 형식 지원)을 편집하고, 템플릿에 플레이스홀더와 논리 구조를 설정하여 .docx, .xlsx, .pptx 및 PDF 파일과 같은 미리 정의된 형식의 파일을 동적으로 생성할 수 있도록 지원합니다. 견적서, 송장, 계약서 등 다양한 비즈니스 문서를 생성하는 데 널리 활용될 수 있습니다.

#주요 기능

  • 다중 형식 지원: Word, Excel, PowerPoint 템플릿과 호환되어 다양한 문서 생성 요구 사항을 충족합니다.
  • 동적 데이터 채우기: 플레이스홀더와 논리 구조를 통해 문서 내용을 자동으로 채우고 생성합니다.
  • 유연한 템플릿 관리: 템플릿 추가, 편집, 삭제 및 분류 관리를 지원하여 유지 보수와 사용이 편리합니다.
  • 풍부한 템플릿 문법: 기본 대체, 배열 접근, 반복, 조건부 출력 등 다양한 템플릿 문법을 지원하여 복잡한 문서 생성 요구 사항을 충족합니다.
  • 포맷터 지원: 조건부 출력, 날짜 형식 지정, 숫자 형식 지정 등의 기능을 제공하여 문서의 가독성과 전문성을 높입니다.
  • 효율적인 출력 형식: PDF 파일을 직접 생성하는 기능을 지원하여 공유 및 인쇄가 편리합니다.

#설치

#플러그인 설치

상용 플러그인 설치 및 업그레이드를 참고해 주세요.

#LibreOffice 설치 (선택 사항)

PDF를 생성하려면 LibreOffice를 설치해야 합니다. 공식 웹사이트에서 다운로드해 주세요. Docker 버전의 경우, ./storage/scripts 디렉터리에 직접 스크립트를 작성할 수 있습니다.

mkdir ./storage/scripts
cd ./storage/scripts
vim install-libreoffice.sh

install-libreoffice.sh 파일의 내용은 다음과 같습니다:

#!/bin/bash

# 변수 정의
INSTALL_DIR="/opt/libreoffice24.8"
DOWNLOAD_URL="https://downloadarchive.documentfoundation.org/libreoffice/old/24.8.5.2/deb/x86_64/LibreOffice_24.8.5.2_Linux_x86-64_deb.tar.gz"

# LibreOffice 설치 여부 확인
if [ -d "$INSTALL_DIR" ]; then
    echo "LibreOffice가 이미 설치되어 있습니다. 설치를 건너뜠니다."
    exit 0
fi

# APT 소스 업데이트
tee /etc/apt/sources.list > /dev/null <<EOF
deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free
deb-src http://mirrors.aliyun.com/debian/ bookworm main contrib non-free
deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free
deb-src http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free
deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free
deb http://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free
deb-src http://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free
EOF

# APT 업데이트 및 의존성 설치
apt-get update

apt-get install -y \
    libfreetype6 \
    fontconfig \
    libgssapi-krb5-2 \
    libxml2 \
    libnss3 \
    libdbus-1-3 \
    libcairo2 \
    libxslt1.1 \
    libglib2.0-0 \
    libcups2 \
    libx11-xcb1 \
    fonts-liberation \
    fonts-noto-cjk \
    wget

rm -rf /var/lib/apt/lists/*

cd /app/nocobase/storage/scripts

# LibreOffice가 없는 경우 다운로드 및 설치
if [ ! -d "./libreoffice" ]; then
    rm -rf libreoffice.tar.gz
    wget --no-check-certificate -O libreoffice.tar.gz $DOWNLOAD_URL
    if [ $? -ne 0 ]; then
        echo "LibreOffice 다운로드에 실패했습니다."
        exit 1
    fi
    rm -rf libreoffice && mkdir libreoffice
    tar -zxvf libreoffice.tar.gz -C ./libreoffice --strip-components=1
    if [ $? -ne 0 ]; then
        echo "LibreOffice 압축 해제에 실패했습니다."
        exit 1
    fi
fi

# LibreOffice 설치
dpkg -i libreoffice/DEBS/*.deb

ln -s /opt/libreoffice24.8/program/soffice.bin /usr/bin/libreoffice
libreoffice --version

if [ $? -ne 0 ]; then
    echo "LibreOffice 설치에 실패했습니다."
    exit 1
fi

echo "LibreOffice 설치가 성공적으로 완료되었습니다."

app 컨테이너를 재시작합니다:

docker compose restart app
# 로그 확인
docker compose logs app

설치 성공 여부 확인:

$ docker compose exec app bash -c "libreoffice --version"

LibreOffice 24.8.4.2 bb3cfa12c7b1bf994ecc5649a80400d06cd71002