paulscherrerinstitute / scilog

BSD 3-Clause "New" or "Revised" License
1 stars 2 forks source link

Export pdf: export of table produces layout problem #329

Closed PhilippJo closed 8 months ago

PhilippJo commented 8 months ago

Issue Name

Export pdf: export of table produces layout problem

Summary

The export of a logbook including tables results in a changed formatting and loss of information.

Steps to Reproduce

1) Create logbook and enter some text and table snippets 2) Export to pdf

Current Behaviour

If a table is included in the logbook, the respective page of the pdf is roated from portrait to landscape format, the text snippets on the same page are cut (-> information is lost) and the table is always shown on the top of a new page

Expected Behaviour

The table is included in place, if there is enough space to include the whole table, the format is not rotated, all informations are perserved and a continious style is achived.

Extra Details

image

Here you should include details about the system (if it is unique) and possible information about a fix (feel free to link to code where relevant). Screenshots/GIFs are also fine here.

minottic commented 8 months ago

could you please include a screenshot of the logbook, before the export?

PhilippJo commented 8 months ago

Here is a screenshot of the actual logbook grafik

minottic commented 8 months ago

what browser/PDF reader do you use?

PhilippJo commented 8 months ago

I checked it with Firefox 122.0 Chrome 121 PDF-XChange Viewer 2.5 Adobe Acrobat Reader 23.008

minottic commented 8 months ago

do you still have access to the scilog.development.psi.ch?

PhilippJo commented 8 months ago

yes I do

minottic commented 8 months ago

ok, if you login there you should see a logbook named: pdf download could you please add the content there and try to download? I will try that myself and see if we get the same result. I get aswell the table in landscape (which is the expected behaviour), but I don't see the content being cut

PhilippJo commented 8 months ago

still get the same content loss. grafik

minottic commented 8 months ago

ok, thanks, I could replicate now. It gets fixed if you add a new line after the table. I will have a look at a proper fix