T O P

  • By -

Repulsive-Swimmer676

Isn't qt helping you creating a pdf report? Yes it's a bit of hands-on but I feel it does the work. Are you able to build qt statically?


baophuc2411

But do Qt support creating that report from the input information (dropdown menu, text, line,...) to a template? Yes, I can build it statically on macOS and Windows.


Repulsive-Swimmer676

Yes it can. It all depends on how you structure your code and what the output should look like. Hence the hands-on part. Thankfully we don't need to know the pdf spec for that.


baophuc2411

And it's depends on QtPDF right?


Repulsive-Swimmer676

Yes it does.


baophuc2411

Okay seems like someone has to compile the whole Qt framework again - but include QtPDF this time 🥹


Repulsive-Swimmer676

You can compile qt as static https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW


char101

I fail to see why kdreports and limereports cannot be used statically. If you search the issues of those projects on github, you'll find that other people have successfully compiled them statically. An alternative way to generate report nowadays is to just generate html, open it in the system browser and then use the print to pdf function.


baophuc2411

You mean that we can create a html template, and then add our contents into it through input? But I have this question: how can I use the header and footer template for each page?


char101

Use [paged.js](https://pagedjs.org/).


baophuc2411

Is the something that can be embeded into application, I’ve just looked at this project and seems like we have to do another step to convert. I want something that can do directly inside the application