We are using Aspose.Total v22.2
Attempting to create a PDF from HTML string has an issue when you have an order list that crosses on multiple pages. The List looks find on the first page but as soon as it moves to the next page is disregards the alignment.
This is the layout that I’m getting after the PDF is created from the HTML
image.png (78.2 KB)
This is the HTML before creating the PDF
image.png (54.0 KB)
Here is the portion of HTML specifically for order list piece on item 23.
<div style="margin-left:0em;" class="meeting-item" data-itemid="123858" data-hasattachments="True">
<table class="item-table" style="padding-bottom:5px;">
<tbody>
<tr>
<td class="attachment-cell">
<div class="pull-left attachment-icon-holder"><span class="glyphicon glyphicon-paperclip" title="Has Attachments" style="color:#aaa;"></span></div>
</td>
<td class="number-cell">
<div style="display: block; width: 100%;"><span style="font-size:12pt;"><span style="font-family:Arial,Helvetica,sans-serif;">(23)</span></span></div>
</td>
<td class="item-cell">
<div class="agenda-item" id="AgendaItem_123858">
<span style="display:block;">
<span style="display:block;width:100%;">
<span style="vertical-align:top;font-weight:bold;font-size:12pt;font-family:Arial,Helvetica,sans-serif;">13-1232-S2</span>
</span>
<span style="display:block;width:100%;padding-bottom:12pt;">
<span style="width:20%;display:inline-block;vertical-align:top;font-weight:bold;font-family:Arial!important;font-size:12pt!important;">CD 12</span>
<span style="display:inline-block;width:79%;vertical-align:top;font-family:Arial!important;font-size:12pt!important;">
<span style="text-align:justify;font-size:12pt;font-family:Arial,Helvetica,sans-serif;">
<span style="font-size:12pt;">
<span style="font-family:Arial,Helvetica,sans-serif;">
MOTION (LEE - KORETZ) relative to funding for any aspect of the efforts / operations of the Granada Hills Youth Recreation Center, Inc.
</span>
</span>
</span>
</span>
</span>
<span style="display:block;width:100%;padding-bottom:12pt;">
<span style="display:inline-block;width:20%;vertical-align:top;"> </span>
<span style="display:inline-block;width:79%;vertical-align:top;font-family:Arial!important;text-align:justify;font-size:12pt!important;">
Recommendations for Council action:
<br>
<br>
<ol>
<li>RESOLVE that $20,000 in the Sunshine Canyon Community Amenities Trust Fund No. 699/14 be allocated and appropriated for any aspect of the efforts / operations of the Granada Hills Youth Recreation Center, Inc.<br>
<br>
</li>
<li>DIRECT City Clerk to prepare and process the necessary document(s) with, and/or payment(s) to Granada Hills Youth Recreation Center, Inc., or any other agency or organization, as appropriate, in the above amount, from the above source, and for the above purposes, subject to the approval of the City Attorney as to form, if needed; and, if needed, Authorize the Councilmember of the Twelfth District to execute any such documents on behalf of the City.<br>
<br>
</li>
<li>AUTHORIZE the City Clerk to make any technical corrections or clarifications to the above fund transfer instructions in order to effectuate the intent of this motion.</li>
</ol>
</span>
</span>
</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
I Have also tried accomplishing this with a table structure and where the table keeps the alignment correct is causes other issues where the text does not stay together as you can see on this output. The table structure does look much better but without the text flowing from page to page and leaving large gaps like you see it doesn’t work.
image.png (42.3 KB)