Skip to content

Commit a41e789

Browse files
Update GroupDocs.Conversion for Python via .NET to 26.9.0
1 parent 6425081 commit a41e789

23 files changed

Lines changed: 184 additions & 10 deletions

File tree

‎.github/workflows/run-examples.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
sudo apt-get update -qq
2828
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
29-
sudo apt-get install -y --no-install-recommends libicu-dev libgdiplus ttf-mscorefonts-installer
29+
sudo apt-get install -y --no-install-recommends libicu-dev fontconfig ttf-mscorefonts-installer
3030
3131
- name: Install package
3232
run: pip install -r Examples/requirements.txt

‎AGENTS.md‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ Use `FileType.from_extension("json")` when you don't know which subclass owns a
324324
| Platform | Requirements |
325325
|---|---|
326326
| Windows | None |
327-
| Linux | `apt install libgdiplus libfontconfig1 ttf-mscorefonts-installer` |
328-
| macOS | `brew install mono-libgdiplus` |
327+
| Linux | `apt install libicu-dev fontconfig ttf-mscorefonts-installer` |
328+
| macOS | None |
329329

330330
## Troubleshooting
331331

@@ -350,10 +350,6 @@ with Converter("input.vss") as c:
350350
print(c.get_possible_conversions().all)
351351
```
352352

353-
**`System.Drawing.Common is not supported`** -- install libgdiplus: `sudo apt install libgdiplus` (Linux) / `brew install mono-libgdiplus` (macOS)
354-
355-
**`Gdip` type initializer exception** -- outdated libgdiplus: `brew reinstall mono-libgdiplus` (macOS)
356-
357353
**Garbled text / missing fonts** -- install fonts: `sudo apt install ttf-mscorefonts-installer fontconfig && sudo fc-cache -f`
358354

359355
**`DllNotFoundException: libSkiaSharp`** -- stale system copy conflicts with bundled version. Rename it: `sudo mv /usr/local/lib/libSkiaSharp.dylib /usr/local/lib/libSkiaSharp.dylib.bak`

‎Dockerfile‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@ FROM python:3.13-slim
22

33
# System dependencies required by the .NET runtime:
44
# - libicu-dev: ICU for .NET globalization
5-
# - libgdiplus: GDI+ for System.Drawing (image conversions)
65
# - fontconfig + fonts-liberation: font cache tooling plus metric-compatible
76
# substitutes for Arial/Times/Courier
87
# - ttf-mscorefonts-installer: the actual Microsoft core fonts (Arial etc.),
98
# which the conversion engine looks up by name for watermarks and text
109
# rendering. It lives in Debian "contrib" (not enabled on the slim base
1110
# image), so that component is enabled first; the debconf line pre-accepts
1211
# its EULA and wget is needed for its font download.
12+
#
13+
# libgdiplus is deliberately NOT installed. Up to 26.5 the engine depended on
14+
# System.Drawing.Common, which needs GDI+; from 26.9 (engine 26.8, .NET 10) the
15+
# cross-platform build drops that dependency for SkiaSharp + Aspose.Drawing, and
16+
# the Linux wheel ships no System.Drawing.Common.dll at all. Measured in this
17+
# image: with libgdiplus present and absent the results are identical.
1318
RUN set -eux; \
1419
if [ -f /etc/apt/sources.list.d/debian.sources ]; then \
1520
sed -i 's/^Components: main$/Components: main contrib/' /etc/apt/sources.list.d/debian.sources; \
@@ -19,7 +24,7 @@ RUN set -eux; \
1924
apt-get update -qq; \
2025
echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections; \
2126
apt-get install -y --no-install-recommends \
22-
libicu-dev libgdiplus fontconfig fonts-liberation wget ttf-mscorefonts-installer; \
27+
libicu-dev fontconfig fonts-liberation wget ttf-mscorefonts-installer; \
2328
fc-cache -f; \
2429
rm -rf /var/lib/apt/lists/*
2530

Binary file not shown.

‎Examples/developer-guide/converting-documents/convert-document-to-another-format/business-plan.txt‎

Lines changed: 173 additions & 0 deletions
Large diffs are not rendered by default.
Binary file not shown.

0 commit comments

Comments
 (0)