MickaelOnTheWave / InvoiceManager

A simple Invoice Database with a GUI client to handle it
GNU General Public License v3.0
1 stars 0 forks source link

Add PDF Creation #28

Closed MickaelOnTheWave closed 11 months ago

MickaelOnTheWave commented 1 year ago

Add PDF Creation feature. There is already GUi and CLI commands, but their implementation does not work. Also, the PDF should have its filename configurable and be the same as the preview.

MickaelOnTheWave commented 1 year ago

QT6 had many problems and so wasn't deemed a proper solution to have PDF through QT6 classes. CSS was changed to be internal, this improved generation but also highlighted that QT5 PdfPrinter does not support enough CSS features to be usable.

wkhtml with Python has been successfully used, therefore the solution is to use its C++ library and integrate it in InvoiceManager.

MickaelOnTheWave commented 1 year ago

wkhtml successfully built. Some things need to be done to be integrated into InvoiceManager :

MickaelOnTheWave commented 11 months ago

wkhtml stripped down of image code. Cmake build created and (mostly) working. Code adapted to compile with Cmake and current configuration. Now trying to solve linking error with GUI.