[Libreoffice-bugs] [Bug 141324] New: HTML exported depends on monitor resolution
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 29 13:29:48 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=141324
Bug ID: 141324
Summary: HTML exported depends on monitor resolution
Product: LibreOffice
Version: 6.1.3.2 release
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: d.obber at siaspa.com
Created attachment 170810
--> https://bugs.documentfoundation.org/attachment.cgi?id=170810&action=edit
source ott & two different html files, due to different screen resolution
I've a java program that exports a block of the document, delimited by a
bookmark.
I use XSelection/XTransferable/isDataFlavorSupported() to select the bookmark
text and then to export it as HTML. Everything worked.
Suddenly I had a problem with a template because the colWidths of a html table
had a different size than before.
I've investigated the issue and I found that the problem is related to the
monitor resolution.
If I run the program with a resolution of 1920x1080, the colWidths of the html
table are about 20% larger than if run the program with a screen resolution of
1600x900.
A) Large colWidths (1920x1080 - font size 125%)
<colgroup>
<col width="194">
<col width="177">
<col width="189">
<col width="188">
</colgroup>
B) Normal colWidths (1600x900, 1920x1080 - font size 100%)
<colgroup>
<col width="154">
<col width="141">
<col width="151">
<col width="150">
</colgroup>
I tried different resolutions and I've got always results of kind A or of kind
B.
Another clue: the program with the same resolution (1920x1080) but with a
different Font Size (100% or 125%, Windows 10 settings) produces different
results (respectively A and B)
In attach there's a zip file with an OTT that has a Bookmark BK_TESTO_LIBERO
that I export. As you can see from the two HTML files, a table has different
colWidths.
I use this HTML to display some text to the end user with a rich text component
and then I take it back. With the large colWidths, the table in the final
document goes over the right margin.
Is there a way to have the same result independently from the screen
resolution?
David
p.s. If needed, I can try to build a simple java program to test it.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210329/804657ae/attachment.htm>
More information about the Libreoffice-bugs
mailing list