ViewerHtmlHandler does not generate Word Header


#1

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

#2

Hi Thomas,


Thanks for using GroupDocs.Viewer for .NET.

We have successfully reproduced your reported issue with the latest version of the API. Therefore, we have logged it in our Issue Tracking System with ID: VIEWERNET-1152. We shall further investigate this issue and in case of any further updates, we’ll notify you here.

If anything is not clear at your end, please do let us know.

Warm Regards

#3

The issues you have found earlier (filed as VIEWERNET-1152) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by groupdocs.notifier.

#4

Thank you for looking into the issue quickly, I look forward for more news from you.


Could you provide an approximation of the time we will have to wait to get this fix?

Cheers,
Thomas

#5

Hi Thomas,


Thanks for your response.

Currently, the issue is under investigation therefore, we are not in the position to provide you any ETA for the fix. As soon as we have any updates, we’ll share that with you.

We appreciate your patience and cooperation in this regards.

Warm Regards

#6

Hi Thomas,

Thanks for coming back to us.

We are delighted to inform you that your reported issue has been resolved and its fix will be available in upcoming version of GroupDocs.Viewer for .NET which is planned to be released by the end of this month. Once the release is on-board, we’ll notify you here.

In case you would have any other query, please do let us know.

Regards


#7

Hi usman,
I am also facing same issue. and using version 16.11.0.0 of groupdocs, can you please tell me in which version team fixed this issue.

Thanks !


#8

@jyotiyadav,

Thanks for contacting support.

The issue reported in this topic is fixed in version 17.4 and greater.


#9

Thank you very much Usman for quick reply.

It is showing manually created header. I checked, but I am creating dynamic header of document by using “documentformat.openxml.wordprocessing” and header is not showing. please check and help on this also.

Thanks,
Jyoti


#10

@jyotiyadav,

Thanks for your response.

Please share with us the following details so that we can investigate the issue at our end.

  • Problematic Word document
  • Source code (console application without compilation errors) you are using to render the document

We shall be looking forward to hearing from you.


#11

@usman.aziz

please find both (word document and source code) required document in attached zip. :

Demo_OpenXMLHeader.zip (1.4 MB)

Thanks,
Jyoti


#12

@jyotiyadav,

Thanks for providing the required details.

We are able to reproduce your reported issue when rendering your provided Word document. We have logged this issue in our internal Issue Tracking System as VIEWERNET-1800 for further investigation. We shall keep you informed in case of any updates.


#13

@usman.aziz

Thank you for quick reply,

Please update if team fixed this issue.

Thanks,
Jyoti


#14

@jyotiyadav,

Thanks for coming back to us.

Your reported issue is not fixed at the moment. As soon as we would have any update, we’ll share that with you. In case you want to escalate your issue based on the urgency at your end, we would suggest you to consider our Paid Support option.