Skip to content
Draft
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
1 change: 0 additions & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ jobs:
target: ${{ matrix.target }}
attest-provenance: true
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ jobs:
python-version: ${{ matrix.python-version }}
target: ${{ matrix.target }}
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/manual-build-wheelhouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ jobs:
python-version: ${{ matrix.python-version }}
target: ${{ github.event.inputs.target }}
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down Expand Up @@ -116,7 +115,6 @@ jobs:
python-version: ${{ github.event.inputs.python-version }}
target: ${{ github.event.inputs.target }}
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down Expand Up @@ -151,7 +149,6 @@ jobs:
python-version: ${{ matrix.python-version }}
target: ${{ github.event.inputs.target }}
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down Expand Up @@ -182,7 +179,6 @@ jobs:
python-version: ${{ github.event.inputs.python-version }}
target: ${{ github.event.inputs.target }}
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/reusable-smoke-tests-rocky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ jobs:
python-version: ${{ matrix.python-version }}
target: ${{ matrix.extras }}
use-python-cache: false
whitelist-license-check: 'fpdf2'
skip-python-setup: true

- name: Import python package
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/sync-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ jobs:
python-version: ${{ matrix.python-version }}
target: ${{ matrix.target }}
use-python-cache: false
whitelist-license-check: 'fpdf2'

- name: Import python package
env:
Expand Down
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ Install PyAEDT with all extra packages (matplotlib, numpy, pandas, pyvista, ...)
pip install pyaedt[all]
```

> **Note:**
The [all] installation target includes `fpdf2` for PDF export functionality, which is
under license LGPL v3. For license-sensitive environments, install PyAEDT without [all]
and add dependencies individually.

You can also install PyAEDT from Conda-Forge with this command:

```sh
Expand Down Expand Up @@ -332,11 +327,6 @@ with Hfss as hfss:

PyAEDT is licensed under the MIT license.

PyAEDT provides an optional PDF export feature via the class `AnsysReport`.
It requires the [fpdf2](https://github.com/py-pdf/fpdf2)
library, which is licensed under the
[GNU Lesser General Public License v3.0 (LGPLv3)](https://www.gnu.org/licenses/lgpl-3.0.en.html#license-text).

PyAEDT makes no commercial claim over Ansys whatsoever. This library extends the
functionality of AEDT by adding a Python interface to AEDT without changing the
core behavior or license of the original software. The use of PyAEDT requires a
Expand Down
1 change: 1 addition & 0 deletions doc/changelog.d/7934.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Pdf_oxide report generation
2 changes: 1 addition & 1 deletion doc/source/API/visualization/plot.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ PyAEDT benefits of `matplotlib <https://matplotlib.org/>`_ package and allows to
PDF
~~~

PyAEDT benefits of `fpdf2 <https://py-pdf.github.io/fpdf2/index.html/>`_ package and allows to generate PDF files.
PyAEDT uses the `pdf-oxide <https://oxide.fyi/>`_ package to generate PDF files.

.. currentmodule:: ansys.aedt.core.visualization.plot.pdf

Expand Down
2 changes: 1 addition & 1 deletion doc/source/User_guide/postprocessing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ PyAEDT leverages PyVista to export and plot fields outside AEDT, generating imag
:alt: Postprocessing features


PyAEDT includes a powerful class to generate a PDF report that is based on the Python ``fpdf2`` package.
PyAEDT includes a powerful class to generate a PDF report that is based on the Python ``pdf-oxide`` package.

To see the capabilities offered by PyAEDT, download a sample PDF report that uses this class:

Expand Down
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ graphics = [
"pyvista[io]>=0.38.0,<0.49",
"matplotlib>=3.5.0",
"vtk>=9.0,<9.7",
"fpdf2",
"pdf-oxide",
"pillow",
]
jupyter = [
Expand All @@ -75,7 +75,7 @@ all = [
"pyaedt[jupyter]",
"requests",
"typer>=0.20.0",
"fpdf2",
"pdf-oxide",
"rpyc>=6.0.0",
]
all-dotnet = [
Expand All @@ -92,7 +92,7 @@ all-dotnet = [
"pyaedt[jupyter]",
"requests",
"typer>=0.20.0",
"fpdf2",
"pdf-oxide",
"rpyc>=6.0.0",
# From 'dotnet' group
"ansys-pythonnet>=3.1.0rc3",
Expand All @@ -110,7 +110,7 @@ examples = [
"joblib>=1.4.0",
"plotly>=6.0",
"scikit-rf>=0.30.0",
"fpdf2",
"pdf-oxide",
"rpyc>=6.0.0",
"tables; python_version >= '3.10'",
]
Expand Down Expand Up @@ -457,4 +457,3 @@ showcontent = true
directory = "test"
name = "Test"
showcontent = true

6 changes: 3 additions & 3 deletions src/ansys/aedt/core/internal/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
# NOTE: This should be updated for any modifications in pyaedt's graphics install target.
# Graphics dependencies cache
_GRAPHICS_DEPENDENCIES = {
"fpdf": None,
"imageio": None,
"matplotlib": None,
"meshio": None,
"pdf_oxide": None,
"pillow": None,
"pyvista": None,
"visualization_interface": None,
Expand Down Expand Up @@ -183,8 +183,8 @@ def check_dependency_available(dependency: str, warning: bool = False) -> bool |
import imageio # noqa: F401
elif dependency == "meshio":
import meshio # noqa: F401
elif dependency == "fpdf":
import fpdf # noqa: F401
elif dependency == "pdf_oxide":
import pdf_oxide # noqa: F401
elif dependency == "pillow":
import PIL # noqa: F401

Expand Down
Loading
Loading