Hi Team,
I have a new question. We have managed to create a proof of concept using the trial license of GroupDocs.Editor as per our previous thread (Unable to compile document editing WebForms application - #18 by atir.tahir).
In the test application we are trying to edit a sample document that is typical in structure and complexity to our client’s requirements. I have observed some inconsistencies when generating the HTML (via the GetBodyContent()) method as follows:
The partially generated HTML looks like this:
<div class="documentMainContent">
<div class="Section1">
<p class="Normal">
<span id="text001">Created with evaluation version of GroupDocs.Editor � Aspose Pty Ltd 2001-2021. All Rights Reserved.</span>
</p>
<div class="Heading1" id="div001">
<span id="text002">
<img id="img001" src="./Source/TempResources/Picture 2.jpeg" width="323" height="123" />
</span>
<span id="text003">client </span>
<span id="text004">Bank </span>
<span id="text005">plc</span>
</div>
<p class="Normal" id="para001">
<span id="text006">
<img id="img002" src="./Source/TempResources/Picture 4.png" width="128" height="58" />
</span>
<span id="text007"> PO Box 6379</span>
</p>
<p class="Normal" id="para002">
<span id="text008">Milton Keynes, MK10 </span>
<span id="text009">1DE</span>
</p>
<p class="Normal" id="para003">
<span id="text010">T </span>
<span id="text011">+44 (0) 80 0029 3994</span>
</p>
<p class="Normal" id="para004">
<span id="text012">T </span>
<span id="text013">+44 (0) 20 7070 6960</span>
</p>
<p class="Normal" id="para005">
<span id="text014">E </span>
<a href="mailto:mailto:gatehouse.servicing@gatehousebank.com">
<span id="text015">client.servicing@clientbank.com</span>
</a>
</p>
<p class="Normal" id="para006">
<span id="text016">W </span>
<a href="http://www.clientbank.com/">
<span id="text017">www.clientbank.com</span>
</a>
</p>
<p class="Normal" id="para007">
<span>Buy To Let Purchase Plan – Financial Information Statement</span>
</p>
<p class="Normal" id="para008">
<span id="text018"> </span>
</p>
<table cellspacing="0" cellpadding="0" style="width: 912.3pt; border-collapse: collapse;">
<tr style="height: 13.2pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: 'Gill Sans MT Std Book'; font-weight: bold;">Error! Not a valid filename.</span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
<tr style="height: 13.85pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
<tr style="height: 13.2pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
<tr style="height: 13.85pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
<tr style="height: 13.2pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
<tr style="height: 13.85pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold; color: rgb(255, 0, 0);"> </span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
<tr style="height: 13.85pt;">
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
<td style="width: 445.35pt; padding-right: 5.4pt; padding-left: 5.4pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;"> </span>
</p>
</td>
</tr>
</table>
<p class="Normal" id="para009">
<span id="text019"> </span>
</p>
<table cellspacing="0" cellpadding="0" style="width: 504pt; border: 0.75pt solid rgb(0, 0, 0); border-collapse: collapse;">
<tr style="height: 12.25pt;">
<td style="width: 492.45pt; border-bottom-style: solid; border-bottom-width: 0.75pt; padding-right: 5.03pt; padding-left: 5.03pt; vertical-align: top; background-color: rgb(33, 156, 147);">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold; color: rgb(255, 255, 255);">Personalised Financial Product Switch Information Statement For:</span>
</p>
</td>
</tr>
<tr>
<td style="width: 492.45pt; border-top-style: solid; border-top-width: 0.75pt; padding-right: 5.03pt; padding-left: 5.03pt; vertical-align: top;">
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;">Account Number: </span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;">Property Address: </span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style=""> </span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;">Date Produced: </span>
<span style="">15 March 2021</span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="font-family: Calibri; font-weight: bold;">Date Valid Until:</span>
<span style="font-family: Calibri; font-weight: bold;">  </span>
<span style="font-family: 'Gill Sans MT'; font-size: 10pt;">«FIRST_PAY_DATE» </span>
<span style=""> </span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 10pt;">
<span style="">«DUM_EXP_DATE»</span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style=""> </span>
</p>
<p style="margin-top: 0pt; margin-bottom: 0pt; font-size: 11pt;">
<span style="">This is not a legally binding finance offer and it does not oblige client Bank PLC to provide you with the Buy To Let Purchase Plan described in this illustration.</span>
<span style="">  </span>
</p>
</td>
</tr>
</table>
Up until the ‘FIRST_PAY_DATE’ text the style and font family is generating correctly. After this point, some (not all!) of the font family style tags are not generating and therefore the resulting document is falling back to use default font. For instance in the source document the text ‘DUM_EXP_DATE’ is also in ‘Gill Sans MT’ font, but as you can see from the above this is not being reflected in the generated HTML. The next sentence starting with “This is not a legally binding…” should also be styled with “font-family: Calibri;”, but as you can see this is missing.
Question: is this a limitation of the trail license or is there another problem with the engine?
Thank you
Kind regards
Gabor