Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ examples/markdown/** -text whitespace=cr-at-eol
examples/markdown/fonts/OFL.txt whitespace=cr-at-eol,-blank-at-eol
docs/assets/markdown-starter/** -text whitespace=cr-at-eol
docs/assets/markdown-starter/*.pdf binary
examples/arabic-invoice/** text eol=lf
examples/arabic-invoice/fonts/*.ttf binary
examples/arabic-invoice/fonts/OFL.txt -text -whitespace
docs/assets/arabic-invoice/** -text
docs/assets/arabic-invoice/*.pdf binary
33 changes: 32 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,37 @@ concurrency:
cancel-in-progress: true

jobs:
arabic:
name: Arabic and English example (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install the public engine and independent PDF readers
run: |
python -m pip install --only-binary=:all: -r examples/arabic-invoice/requirements.txt pypdf==6.19.0 pypdfium2==5.14.0 Pillow==12.3.0
- name: Verify the actual ZIP, fonts, guide, and customized PDF
run: |
python tools/build_arabic_example.py
git diff --exit-code -- docs/assets/arabic-invoice/project.zip docs/assets/arabic-invoice/source.json
python tools/verify_arabic_example.py
- uses: actions/upload-artifact@v4
if: always()
with:
name: arabic-verification-${{ matrix.os }}
path: |
output/arabic-verification/*.json
output/arabic-verification/*.txt
output/arabic-verification/*.png
output/arabic-verification/render/
output/arabic-verification/edited/
retention-days: 14
rust-download:
name: Rust starter (Windows)
runs-on: windows-latest
Expand Down Expand Up @@ -370,7 +401,7 @@ jobs:
path: site
deploy:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: [build, aspnet, chinese, markdown, tagged-notice, rust-download]
needs: [build, aspnet, chinese, arabic, markdown, tagged-notice, rust-download]
runs-on: ubuntu-latest
permissions:
pages: write
Expand Down
Binary file added docs/assets/arabic-invoice/invoice-pdfium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/arabic-invoice/invoice.pdf
Binary file not shown.
Binary file added docs/assets/arabic-invoice/invoice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/arabic-invoice/project.zip
Binary file not shown.
80 changes: 80 additions & 0 deletions docs/assets/arabic-invoice/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"schema": "fullbleed.arabic-example.v1",
"fullbleed": "2.5.14",
"files": [
{
"path": "README.md",
"bytes": 1827,
"sha256": "b499731a680a686c5362e684255242343b5809e8b7ae8862e50ab86494e5955b"
},
{
"path": "LICENSE",
"bytes": 1079,
"sha256": "36a2115938f6e68cf0d87eccff7a6a3e57c17017e909cbd640d51aff1fa0c5a9"
},
{
"path": "requirements.txt",
"bytes": 18,
"sha256": "e7669031cdf83cbb13fa8bf6da805f3f691d4a77fc64f22547e66020bc2b7abd"
},
{
"path": "font-source.json",
"bytes": 689,
"sha256": "9153f1a7779bd57aacd098ab6a06665208890b727ab72bec9f8347bad6c23156"
},
{
"path": "render.py",
"bytes": 5557,
"sha256": "c2bfebc08ad6c933301c3cc9890e72954bfa4b4452af3abbc344ad1f702df506"
},
{
"path": "invoice.css",
"bytes": 2951,
"sha256": "bf927cee6a86814c549c2c9ad546d2fd0800c94ce5028d7bb7cf48421d48e5c0"
},
{
"path": "data.json",
"bytes": 684,
"sha256": "587cb3903c03481653870ec8fe09e66cb3002a01d28a8bf7f6ca45a89fe50f38"
},
{
"path": "fonts/NotoSansArabic-Regular.ttf",
"bytes": 240456,
"sha256": "ceea25b464a656dc3b26849bab9356740401af62aedf1bfa8b7f0d9b75925b1b"
},
{
"path": "fonts/NotoSansArabic-Bold.ttf",
"bytes": 248468,
"sha256": "ed2711b387750ae991b6a980b8dd16fdd65e6702b97e9f52adf3a8edf09ef4df"
},
{
"path": "fonts/OFL.txt",
"bytes": 4377,
"sha256": "0dab92d0544f7b233403f14b84a663bdbfa746982eda629e7f4f9ffe1b036feb"
}
],
"zip_bytes": 223321,
"zip_sha256": "3f82e1c5a9eeba12ec6ba60bfaa7ce36ff2f017d3856541631de697b5216b7e5",
"fonts": {
"license": "SIL Open Font License 1.1",
"repository": "https://github.com/notofonts/noto-fonts",
"commit": "6cfca385c8757fadf537923d59a671116a865d48",
"files": [
{
"file": "fonts/NotoSansArabic-Regular.ttf",
"sha256": "ceea25b464a656dc3b26849bab9356740401af62aedf1bfa8b7f0d9b75925b1b",
"source": "hinted/ttf/NotoSansArabic/NotoSansArabic-Regular.ttf"
},
{
"file": "fonts/NotoSansArabic-Bold.ttf",
"sha256": "ed2711b387750ae991b6a980b8dd16fdd65e6702b97e9f52adf3a8edf09ef4df",
"source": "hinted/ttf/NotoSansArabic/NotoSansArabic-Bold.ttf"
},
{
"file": "fonts/OFL.txt",
"sha256": "0dab92d0544f7b233403f14b84a663bdbfa746982eda629e7f4f9ffe1b036feb",
"source": "LICENSE"
}
]
}
}
Loading
Loading