danvergara / morphos

Self-hosted file converter server
MIT License
750 stars 33 forks source link

Replace unipdf #46

Closed danvergara closed 3 months ago

danvergara commented 3 months ago

Replace unipdf with go-fitz

Description

As a user suggested, it seems that go-fitz is a better fit for morphos than unipdf is. I wanted to removed unipdf because of the license of the project, which is more like a product than a FOSS project.

/upload HTTP handler execution time using Unipdf:

Screenshot from 2024-04-03 21-51-01

/upload HTTP handler execution time using go-fitz:

Screenshot from 2024-04-03 21-53-15

Testing with a 60 pages PDF file, running the container on Linux (Fedora).

OS Name: Fedora Version: 39 Processor: Intel i7-8650U (8) @ 4.200GHz Installed Physical Memory (RAM) 24.0 GB

Fixes #45

Type of change

Please delete options that are not relevant.

How Has This Been Tested?

Ran the test suite and QA'd this to make sure the replacement works as expected.

Checklist: