Hello,
I am contacting you in regard to a bug in GroupDocs.Viewer.Handler.ViewerHtmlHandler
and Word documents.
Most of the documents have a header that is generated properly. But in some other documents the header of a Word document is not generated by the HtmlHandler.
In the attached documents you will find the Rendered Html as well as the original Word Document.
Also please find the generated HTML for the second page below.
— HTML
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” /><link rel=“stylesheet” type=“text/css” href=“GDocumentViewer/GetResourceForHtml?documentPath=2b285f79_14d5_4e58_84bd_63f2c5c59602.doc&pageNumber=2&resourceName=/fontFaces.css” media=“all” /><link rel=“stylesheet” type=“text/css” href=“GDocumentViewer/GetResourceForHtml?documentPath=2b285f79_14d5_4e58_84bd_63f2c5c59602.doc&pageNumber=2&resourceName=/styles.css” media=“all” /><div class=“pg2-wsICYytT-div pg2-wsICYytT-page” style=“width:595.3pt; height:841.9pt;”><div class=“pg2-wsICYytT-div” style=“left:66.6pt; top:781.06pt; clip:rect(-1584pt,1584pt,1585pt,-1584pt); z-index:1;”><div class=“pg2-wsICYytT-div” style=“top:24.83pt; z-index:2;”><div class=“pg2-wsICYytT-div” style=“left:207.95pt; top:-24.83pt; clip:rect(-1pt,47.2pt,52.16pt,-1pt); z-index:3;”><div class=“pg2-wsICYytT-div” style=“left:5.4pt; z-index:4;”><span class=“pg2-wsICYytT-span pg2-wsICYytT-text1” style=“font-size:8pt; left:0pt; top:20.74pt;”>Page 2
<div class=“pg2-wsICYytT-div” style=“left:0pt; top:24.83pt; width:207.95pt; height:0pt; border-top:solid 0.5pt
#4f81bd;”><div class=“pg2-wsICYytT-div” style=“left:254.15pt; top:24.83pt; width:207.95pt; height:0pt; border-top:solid 0.5pt
#4f81bd;”><div class=“pg2-wsICYytT-div” style=“left:72pt; top:72pt; z-index:1;”><div class=“pg2-wsICYytT-div” style=“left:6pt; z-index:2;”><span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:0pt;”>But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:10.94pt;”>was born and I will give you a complete account of the system, and expound the actual <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:21.88pt;”>teachings of the great explorer of the truth, the master-builder of human happiness. No one <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:32.81pt;”>rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:43.75pt;”>know how to pursue pleasure rationally encounter consequences that are extremely painful. Nor <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:54.69pt;”>again is there anyone who <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:122.84pt; top:54.69pt;”>loves or pursues or desires to obtain pain of itself, because it is pain, <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:65.63pt;”>but<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:14.85pt; top:65.63pt;”> occasionally <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:75.41pt; top:65.63pt;”>circumstances occur in which toil and pain can procure him some <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:76.57pt;”>great<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:23.76pt; top:76.57pt;”> pleasure. <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:71.79pt; top:76.57pt;”>To take a trivial example, which of us ever<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:265.06pt; top:76.57pt;”> undertakes <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:321.92pt; top:76.57pt;”>laborious physical <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:87.5pt;”>exercise, except to obtain some advantage from it? But who<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:273.64pt; top:87.5pt;”> has any right to <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:351.85pt; top:87.5pt;”>find fault<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:392.23pt; top:87.5pt;”> with a <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:98.44pt;”>man who <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:44.71pt; top:98.44pt;”>chooses to enjoy a pleasure<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:171.2pt; top:98.44pt;”> that has no annoying consequences, or <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:355.42pt; top:98.44pt;”>one<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:371.93pt; top:98.44pt;”> who <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:396.79pt; top:98.44pt;”>avoids a <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:109.38pt;”>pain<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:19.18pt; top:109.38pt;”> that <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:43.7pt; top:109.38pt;”>produces no<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:98.97pt; top:109.38pt;”> resultant pleasure?<div class=“pg2-wsICYytT-div” style=“left:6pt; top:132.32pt; z-index:2;”><span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:0pt;”>On the other hand, we denounce with righteous indignation and dislike men who are so beguiled <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:10.94pt;”>and demoralized by the charms of pleasure of the moment, so <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:286.47pt; top:10.94pt;”>blinded by desire, that they <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:21.88pt;”>cannot foresee<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:66.9pt; top:21.88pt;”> the pain and trouble that are bound to ensue; and equal <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:329.35pt; top:21.88pt;”>blame belongs to those <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:32.81pt;”>who fail in their duty through weakness of will, which is the same as saying through shrinking <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#ff0000; left:0pt; top:43.75pt;”>from toil<span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:38.33pt; top:43.75pt;”> and pain. These cases are perfectly simple and easy to distinguish. In a free hour, <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:54.69pt;”>when our power of choice is untrammelled and when nothing prevents our being able to do <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:65.63pt;”>what we like best, every pleasure is to be welcomed and every pain avoided. But in certain <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:76.57pt;”>circumstances and owing to the claims of duty or the obligations of business it will frequently <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:87.5pt;”>occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:98.44pt;”>always holds in these matters to this principle of selection: he rejects pleasures to secure other <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:109.38pt;”>greater pleasures, or else he endures pains to avoid worse pains.<div class=“pg2-wsICYytT-div” style=“left:2.85pt; top:264.64pt; z-index:2;”><span class=“pg2-wsICYytT-span pg2-wsICYytT-text3” style=“font-size:9pt; color:
#4682b4; left:0pt; top:0pt;”>Lorem Ipsum: variants and technical information<div class=“pg2-wsICYytT-div” style=“left:1.4pt; top:278.21pt; width:451.35pt; height:0pt; border-top:solid 0.5pt
#1f497d;”><div class=“pg2-wsICYytT-div” style=“left:6pt; top:281.71pt; z-index:2;”><span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:9pt;”>In 1985 Aldus Corporation launched its first desktop publishing program Aldus PageMaker for <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:19.94pt;”>Apple Macintosh computers, released in 1987 for PCs running Windows 1.0. Both contained the <span class=“pg2-wsICYytT-span pg2-wsICYytT-text2” style=“font-size:9pt; color:
#4682b4; left:0pt; top:30.88pt;”>variant lorem ipsum most common today. Laura Perry, then art director with Aldu