https://github.com/rekgrpth/pg_mupdf
postgres mupdf
https://github.com/rekgrpth/pg_mupdf
mupdf postgresql
Last synced: 4 months ago
JSON representation
postgres mupdf
- Host: GitHub
- URL: https://github.com/rekgrpth/pg_mupdf
- Owner: RekGRpth
- License: mit
- Created: 2019-07-14T13:26:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-01-01T19:11:52.000Z (over 1 year ago)
- Last Synced: 2025-08-02T21:52:56.767Z (11 months ago)
- Topics: mupdf, postgresql
- Language: C
- Homepage:
- Size: 52.7 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PostgreSQL implementation of Convert HTML to PDF using MuPDF.
### [Use of the extension](#use-of-the-extension)
```sql
select curl_easy_setopt_followlocation(1);
select curl_easy_setopt_url('https://github.com');
select curl_easy_perform();
copy (
select mupdf(convert_from(curl_easy_getinfo_data_in(), 'utf-8'), options:='compress')
) to '/var/lib/postgresql/mupdf.pdf' WITH (FORMAT binary, HEADER false)
```