Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sksat/reportlab-action
Edit PDF on GitHub Actions by ReporLab
https://github.com/sksat/reportlab-action
Last synced: 2 months ago
JSON representation
Edit PDF on GitHub Actions by ReporLab
- Host: GitHub
- URL: https://github.com/sksat/reportlab-action
- Owner: sksat
- License: mit
- Created: 2021-09-02T04:12:12.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-28T20:14:53.000Z (7 months ago)
- Last Synced: 2024-05-29T11:16:48.120Z (7 months ago)
- Language: Python
- Size: 68.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reportlab-action
[![Build Container Image](https://github.com/sksat/reportlab-action/actions/workflows/build-image.yml/badge.svg)](https://github.com/sksat/reportlab-action/actions/workflows/build-image.yml)
[![test Action](https://github.com/sksat/reportlab-action/actions/workflows/test-action.yml/badge.svg)](https://github.com/sksat/reportlab-action/actions/workflows/test-action.yml)Edit PDF on GitHub Actions by ReporLab
## example
```yaml
- uses: ./
with:
script: hello.py
output: hello.pdf
```hello.py
```python
from PyPDF2 import PdfFileWriter, PdfFileReaderfrom reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import A4def generate(output):
print("hello")
c = canvas.Canvas(output)
c.drawString(100, 100, "hello")
c.save()
```