symphytum icon indicating copy to clipboard operation
symphytum copied to clipboard

Configure report in pdf

Open antoniodiaz90 opened this issue 6 years ago • 4 comments

It is possible to create an option to place the different fields in the pdf that is generated, distribute them in a similar way to how it is done in the form.

That is, to be able to configure the report that is generated in pdf.

Thank you!

antoniodiaz90 avatar Oct 28 '18 11:10 antoniodiaz90

The print module is very basic, it just does the minimum required to have some kind of pdf to backup or archive. Viewing the data through PDF is limited because it's not easy to translate dynamic and layered content data, as saved in the different field types, to a static page.

There are issues to think about, for example, would it be enough to draw the exact view of the form view to a PDF page? But then what happens if the contents, ie. all fields, don't fit into the page? Should the image be scaled down to fit on the page? What if the data doesn't fit inside a field, for example a text filed which extends to 2 rows could contain much more text that is displayed. Another thing, the text would probably not be selectable on the pdf document because if we go this route it would be an image-based PDF document.

It's a big task which needs more thinking and discussion. I leave the feature proposition open, but for me the priority is quite low. As always, we are open to contributions if anyone wants to help with this.

Another possibility would be some minor configuration options to improve the current implementation. Options such as, field order as in form view and other things I could think about.

But I agree, the printing is very limited and looks ugly 😆

What would be your most important option that is missing?

joshirio avatar Oct 28 '18 11:10 joshirio

I have not expressed myself completely well, I'm sorry.

What I was referring to specifically is a basic option of form view as you said, something that does not require much work in its implementation and that is useful when generating reports.

In response to your question, what would be the most important option that is missing? I hope that the ideas I propose are useful:

  • The order of fields that you comment is interesting.

  • Select those fields that we want to print.

  • Sometimes, some fields are empty for different issues, in the current report appear contain data or not, it would be interesting that those fields that do not contain data do not appear in the report.

  • Another option to take into account, would be the possibility of positioning the image field in the report, some fields do not contain much data, and it is possible to take advantage of the document space to position the image in that empty space.

  • Possibility of title to the document, either the one that contains by default the name of the collection or that can be put freely.

  • Finally, the option to print those records of the table that are provided after a specific search, or print all the records, would also be useful.

As you say, a report based on images is not useful, for the different issues that you have exposed. As shown in the current report, the data is the most correct way, since they are selectable and occupy the space they need in the report.

I hope I expressed myself well, and thanks again.

antoniodiaz90 avatar Oct 28 '18 13:10 antoniodiaz90

Thanks for the feedback, those concrete suggestions are helpful and something I can work with.

Finally, the option to print those records of the table that are provided after a specific search, or print all the records, would also be useful.

Note that you can already do this, if you do a search, you can select the results in the table view you want to print (CTRL+A to select all)

joshirio avatar Oct 28 '18 13:10 joshirio

I hope that the ideas are useful for you and you can work with them, thanks to you for taking them into account.

In relation to the selection of the results of the search, you did not know CTRL + A to select the records, I will keep it in mind, it is useful.

What I was specifically referring to was the possibility of printing the selected records of a search, both in table format and in form format.

It may be interesting to print a table of searched records with those fields that you want to select.

I take this opportunity to congratulate you for the work you do.

We hope to see the next update in the near future, thanks again.

antoniodiaz90 avatar Oct 28 '18 15:10 antoniodiaz90