<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - HTML exported depends on monitor resolution"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=141324">141324</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>HTML exported depends on monitor resolution
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>6.1.3.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>d.obber@siaspa.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=170810" name="attach_170810" title="source ott & two different html files, due to different screen resolution">attachment 170810</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=170810&action=edit" title="source ott & two different html files, due to different screen resolution">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>