giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.43k stars 464 forks source link

PDF Export: two images next to each other, center text #811

Open ya-kay opened 4 years ago

ya-kay commented 4 years ago

Hey,

when I'm exporting my documentation (without paying attention to the horrible scaling quality) two images, which are next to each other and having the same size are shown in two different sizes in the final pdf document.

And the text, which is alignt to the center, isn't it in the exported pdf file.

CherryTree View: CherryTreeView

PDF View: PDFView

HTML View: HTMLView

I've noticed also, that the (first) images (of each line), also when there is no neighbour image, in the pdf document have a different (bigger) size than set in CherryTree --> the width is set to 450px and the pdf's first image is much wider (than 450px).

But thanks for the great tool!

txe commented 4 years ago

Hi, A4 measures 210 × 297 millimeters or 595 × 842 points. The first image width is less 595 pt, so we keep the original size. I just check, when it's one image or two images, the width of the first is same 450pt (I used a ruler in a pdf viewer). Because we cannot go beyond the page dimensions (unlike in html), we have to scale the second image, thus it's so small.

txe commented 4 years ago

Scale quality is fixed in C++ version, or at least it's more decent.

txe commented 4 years ago

I couldn't reproduce the issue with missing text. Can you upload the cherrytree file?

ya-kay commented 4 years ago

And the text, which is alignt to the center, isn't it in the exported pdf

I couldn't reproduce the issue with missing text. Can you upload the cherrytree file?

Wrong wording by me, I mean that the alignment (center) is missing

ya-kay commented 4 years ago

Scale quality is fixed in C++ version, or at least it's more decent.

Do you have a link to the version? Thanks in advance!

txe commented 4 years ago

That version is under testing, so there is no package yet. You can compile it yourself by following an instruction in future/README.md