<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>When I open the test PDF in atril (the Mate desktop version of evince) and change the window size (with 'fit page width'), once I get below about 80%, small changes make the bars of the staff go up and down, and not all of the bars of the staff shift equally,
so the space between the bars is not equal, and that might contribute to the effect that the notes are misplaced. I am not sure, but it seems as if it is not antialiasing the bars. When you reduce the image to the point where pixels are significant and the
total number of pixels is not the exact amount to leave the same number of pixels between each bar, rounding can't create more pixels. You need to simulate fractional pixels through antialiasing. The 'w' command in PDF sets the line width. It looks like it
is drawing lines of 0.4, 0.65, 0.8, and 1 point. The tests for <span>thinLineMode are in splash/Splash.cc.</span></p>
<p><span><br>
</span></p>
<p><span>William</span></p>
<p><span><br>
</span></p>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> poppler <poppler-bounces@lists.freedesktop.org> on behalf of pqt@LEFerguson.com <pqt@LEFerguson.com><br>
<b>Sent:</b> Sunday, March 26, 2017 12:34 PM<br>
<b>To:</b> Albert Astals Cid; poppler@lists.freedesktop.org<br>
<b>Subject:</b> Re: [poppler] Scaling factor and placement accuracy</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">>> ourParent->document->setRenderHint(Poppler::Document::Antialiasing);<br>
>> ourParent->document->setRenderHint(Poppler::Document::TextAntialiasing<br>
>>ourParent->document->setRenderHint(Poppler::Document::ThinLineSolid);<br>
<br>
>Tried thin line shape instead of thing line solid?<br>
<br>
Thanks, Albert, I just tried it, same result.<br>
<br>
I spent a couple hours last night trying to find the area of code that does the actual placement without any real luck, to see if there is any kind of rounding issue. I saw a lot of other possible areas like anti-aliasing, but basically got lost in the code
because I don't know enough to know what is actually inside the PDF (I tried PDFStreamDumper and can see what's inside, and even seeing it I do not understand it).
<br>
<br>
So far making the x/y scale factor integral appears to avoid the problem; it's hard to prove a negative, but I have not seen it occur in that case. This just very slightly throws off the desired size I want, and I just needed to put a proper color border into
the overall page to avoid showing an outline, so it's very workable for what I want, if it keeps working.<br>
<br>
Thanks again,<br>
<br>
Linwood<br>
_______________________________________________<br>
poppler mailing list<br>
poppler@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/poppler" id="LPlnk715584" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/poppler</a>
<div id="LPBorder_GT_14905575915020.8702532464665824" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14905575914990.9612005051317651" role="presentation" cellspacing="0" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td id="TextCell_14905575915000.8425488913535857" colspan="2" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;">
<div id="LPRemovePreviewContainer_14905575915000.9769699666037437"></div>
<div id="LPTitle_14905575915000.7746580093890942" style="top: 0px; color: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14905575915000.7762204401673523" href="https://lists.freedesktop.org/mailman/listinfo/poppler" target="_blank" style="text-decoration: none;">poppler Info Page - freedesktop.org</a></div>
<div id="LPMetadata_14905575915010.035493496038826455" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.freedesktop.org</div>
<div id="LPDescription_14905575915010.7732279886137667" style="display: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
Subscribing to poppler: Subscribe to poppler by filling out the following form. You will be sent email requesting confirmation, to prevent others from ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>