# Source Code Availability

This source archive contains the corresponding source code for the
PDF generation application made available under GNU AGPLv3.

The source includes the application code, project files,
configuration examples, and build instructions required to build
the application.

The following items are intentionally excluded:

- Production credentials, personal data, certificates, private keys,
  database contents, and infrastructure secrets
- NuGet package archives are not copied into this source archive. Direct
  package versions are pinned in PhotoTkutimes.csproj and are restored from
  https://www.nuget.org. Each package remains subject to its own licence;
  NuGet packages are not categorically treated as AGPLv3 System Libraries.
  Resolved direct and transitive versions are recorded in packages.lock.json.
- .NET SDK and runtime components normally distributed with the operating
  system or toolchain are System Libraries as defined by AGPLv3 Section 1
- User-uploaded content: wwwroot/Photos, wwwroot/uploads
- Runtime-generated output: wwwroot/pdf
- Build intermediates: bin/, obj/
- edukai-4.0.ttf font: separately available from the Republic of China
  Ministry of Education (CC BY-ND 3.0 TW); not bundled due to licence
  restrictions on redistribution with modification

If this application is deployed for network use, users can obtain the
matching source code archive from the source page of the website that
uses this API.

## 繁體中文（台灣）說明

本原始碼壓縮檔提供本 PDF 產生應用程式在 GNU AGPLv3 授權下所對應的完整原始碼。

內容包含：
- 應用程式原始碼
- 專案檔
- 設定範例
- 建置所需說明

以下項目不包含在內：

**因涉及敏感資訊：**
- 正式環境帳號密碼與金鑰
- 個人資料
- 憑證與私鑰
- 正式資料庫內容
- 基礎設施機密設定

**未複製進來源壓縮檔，但可依專案資訊取得：**
- NuGet 套件（含 `itext7`）：直接套件版本已標明於 `PhotoTkutimes.csproj`，完整直接與遞移版本記錄於 `packages.lock.json`，可由 https://www.nuget.org 還原；各套件仍適用其個別授權，不一概視為 AGPLv3 所稱的系統函式庫

**AGPLv3 第 1 條所稱的系統函式庫：**
- 隨作業系統或一般開發工具鏈正常散布的 .NET SDK 及執行環境元件

**不屬於程式對應原始碼的執行期資料：**
- 使用者上傳內容：`wwwroot/Photos`、`wwwroot/uploads`（執行期資料，非原始碼）
- 執行期產出：`wwwroot/pdf`（由程式動態產生）
- 建置中間產物：`bin/`、`obj/`（可由原始碼重建）
- `edukai-4.0.ttf` 字型：非本專案自行開發，可另行由中華民國教育部取得（創用 CC 姓名標示-禁止改作 3.0 臺灣版）

若本服務以網路方式提供使用，使用者可透過使用本 API 之網站來源頁
下載與目前部署版本相對應的原始碼壓縮檔。
