https://github.com/raudius/files_scripts_deprecated
Keeps deprecated and removed functions for the `files_scripts` Nextcloud app
https://github.com/raudius/files_scripts_deprecated
Last synced: 10 months ago
JSON representation
Keeps deprecated and removed functions for the `files_scripts` Nextcloud app
- Host: GitHub
- URL: https://github.com/raudius/files_scripts_deprecated
- Owner: Raudius
- License: apache-2.0
- Created: 2023-12-17T15:04:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T15:33:06.000Z (over 2 years ago)
- Last Synced: 2025-08-06T10:32:13.077Z (10 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This app packages the deprecated and removed functions from the `files_scripts` Nextcloud app.
## Functions
### html_to_pdf
`html_to_pdf(String html, [Table config]={}, [Table position]={}): string|nil`
Renders the HTML onto a PDF file.
A configuration table can be passed to configure various aspects of PDF generation. For more information see the [MPDF documentation](https://mpdf.github.io/reference/mpdf-variables/overview.html).
The position (x, y, w, h) of where to render the HTML onto the page can also be provided. For more information see the [MPDF documentation](https://mpdf.github.io/reference/mpdf-functions/writefixedposhtml.html)
Returns the PDF as a string (or `nil` if PDF generation failed).