Does Aspose support XHTML strings

Hi,

I am planning to buy a pdf fomratter and came across Aspose. Our requirement is to convert a XHTML string pdf.
which supports all levels formatting and evewn image inclusion. This is in java

A quick response is highly appreciated.

@swarna.padma

Thanks for showing interest in our API.

We are glad to share with you that you can add both HTML and XHTML string inside PDF document, while using our API. Please check following sample code snippet, where I have added XHTML string inside PDF document, which contains image as well. For your reference, a sample output, generated by below code snippet is also attached.

Document doc = new Document();
Page page = doc.getPages().add();

String xHtmlString = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'" +
                                "'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" +
                                "<html xmlns='http://www.w3.org/1999/xhtml'>" +
                                "<head>" +
                                  "<title>Title of document</title>" +
                                "</head>" +
                                "<body>" +
                                  "some content <br />" +
                                    "<img src='aspose.jpg' />" +
                                "</body>" +
                                "</html>";
HtmlFragment xHtml = new HtmlFragment(xHtmlString);
// dataDir is the physical path where image is located
xHtml.setHtmlLoadOptionsOfInstance(new HtmlLoadOptions(dataDir + "///"));
page.getParagraphs().add(xHtml);

doc.save(dataDir + "xHtmlInPdf.pdf");

xHtmlInPdf.pdf (38.6 KB)

In event of any further query, please feel free to ask.

PS: Would you please share the JDK version, with which you want to use the API.

Thanks for your quick response Asad.

Can you share which aspose jars I have to use. and the links to download the jars and any dependencies.

Currently I have:
aspose-pdf-2.9.0-jdk16.jar
aspose.pdf-17.10.jar

Document doc = new Document();
Page page = doc.Pages.Add();
string xHtmlString = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 
Transitional//EN''http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>;"
    								+ "<html xmlns='http://www.w3.org/1999/xhtml'>;"
    								+ "<head> <title>Title of document</title></head><body> Some content <br />"
    								+ "<img src='aspose.jpg' />                                 </body>                                  </html>";
HtmlFragment xHtml = new HtmlFragment(xHtmlString);
// dataDir is the physical path where image is located
xHtml.HtmlLoadOptionsOfInstance = new HtmlLoadOptions(dataDir + "\\");
page.Paragraphs.Add(xHtml);
doc.Save(dataDir + "xHtmlInPdf.pdf"); 

I get error - HtmlLoadOptionsOfInstance cannot be resolved or is not a field

@swarna.padma

Thanks for getting back to us.

Please download latest version Aspose.Pdf for Java 17.10 and add .jar naming “aspose-pdf-17.10.jar” into your project, in order to work with Aspose.Pdf. In case you are using Maven build tools, you may follow the instructions specified over “Install Aspose.Pdf for Java” in our API documentation.

Please make sure to use latest version of Aspose.Pdf for Java which is 17.10, as it is always recommended to use latest version. Furthermore, it is also advisable to use JDK version 1.8 or higher for better memory management and performance.

PS: There are no dependencies for Aspose.Pdf for Java, need to be added in the project.

Asad,

you miust have noticed, aspose-pdf-17.10.jar is already in my classpath… Still the issue with Pages & Paragraphs and HtmlLoadOptionsOfInstance.
Which api do they belong to?

Can you include an example with the required jars.

  1. Also, cna you tell if aspose supports word-wrap and word-break while XHTML string to PDF conversion?

@swarna.padma

Thanks for your inquiry.

We apologize for the confusion and not including following information in our earlier reply. Please make sure to declare com.aspose.pdf class like below, so that all belonging classes to the package can be declared in your program.

import com.aspose.pdf.*;

Furthermore, please check following code snippet where I have used classes and methods with their complete names. In case you do not want to declare all classes in your program, you may also use following code snippet:

com.aspose.pdf.Document doc = new com.aspose.pdf.Document();
com.aspose.pdf.Page page = doc.getPages().add();

String xHtmlString = "<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'" +
                                "'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>" +
                                "<html xmlns='http://www.w3.org/1999/xhtml'>" +
                                "<head>" +
                                  "<title>Title of document</title>" +
                                "</head>" +
                                "<body>" +
                                  "some content <br />" +
                                    "<img src='aspose.jpg' />" +
                                "</body>" +
                                "</html>";
com.aspose.pdf.HtmlFragment xHtml = new com.aspose.pdf.HtmlFragment(xHtmlString);
// dataDir is the physical path where image is located
xHtml.setHtmlLoadOptionsOfInstance(new com.aspose.pdf.HtmlLoadOptions(dataDir + "///")); // it is necessary to add three slashes at the end of the path;
page.getParagraphs().add(xHtml);

doc.save(dataDir + "xHtmlInPdf.pdf");

In case you still face any issue while using Aspose.Pdf for Java Package, please feel free to let us know.

Would you please add some more details by sharing your sample XHTML string or file, so that we can test the scenario in our environment and address it accordingly.

Asad,

That works… But when in a table data is continuous - very big word and also huge paragraph crops the table out of page…

The example XHTML string is shown below… Can you please work if this actually works with Aspose PDF??

	String fromApplication = "<p style=text-align:center;>Document of Understanding</p><p style=text-align:center;>Between</p><p style=text-align:center;>PHH</p><p style=text-align:center;>And</p><p style=text-align:center;>ServiceNow (NA)</p><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 1.1&nbsp;&nbsp;Test</b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><p>In Scope</p><p>&nbsp;</p><p>$0.00</p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 2.1&nbsp;&nbsp;Test with Service_In_Scope Variable</b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><p>Test data section for PHH with Out of Scope variable</p><p>&nbsp;</p><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This section provides a short description of those involved in delivering or supporting this DoU.</span></span></span></span></span></p><table cellspacing=0 class=Table style=border-collapse:collapse>	<tbody>		<tr>			<td style=background-color:#e7e6e6>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><strong><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Role or Team Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></strong></span></span></p>			</td>			<td style=background-color:#e7e6e6>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><strong><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Description</span></span></span></strong></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>L1/L2/L3 Support</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Interacts with customers, vendors and management to ensure high level of customer satisfaction. Acts as technical resource and point of escalation for team members and helps in identifying and resolving complex incidents relating to product/service installation, update, configuration, operations, or performance.</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>L4 Support</span></span></span></span></span></p>			</td>			<td style=vertical-align:top><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,</span></span></span></span></span>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Operations Architect</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This role assumes overall technical responsibility for the success of solution construction, implementation and system integration in a technology, This role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationor our customers&#39; business applications comprised of technology, service delivery processes, and organization design</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Technical Delivery PM / Focal" + 
			" </span></span></span></span></span></p>			</td>			<td style=vertical-align:top><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery withi </span></span></span></span></span>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>qualified PM Professional that will lead complex technical project teams and manage on-time delivery within </span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Business Operations Manager (BOM)&nbsp;</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS </span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>EADS Service Line DPE</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Ensures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needs</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>EEE Account Focal Point ( to the IBM Account Team)</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Single point of contact for interactions between IBM Account Lead and EADS Project Office.</span></span></span></span></span></p>			</td>		</tr>	</tbody></table><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>The WEEE Service Line will provide L1/L2/L3/L4 Operation Support Service as follows:</span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>&nbsp;- Be responsible for applicationBe responsible for applicationBe responsible for applicationBe responsible for applicationBe responsible for application</span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>&nbsp;- Manage EEEES Support Manage EEEES Support Manage EEEES Support Manage EEEES Support service requests submitted by the IBM Account customer and/or the EADS Account focal through the North American Service Provider (NASP)&nbsp; </span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>- Manage inciden Manage incidentManage incidentManage incidentManage incident.</span></span></span></span></span></p><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>IBM Account Teams&nbsp;IBM Account TIBM Account TIBM Account TIBM Account TIBM Account TIBM Account.</span></span></span></span></span></p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 2.2&nbsp;&nbsp;One more section </b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><table border=1 cellpadding=1 cellspacing=1 style=width:400px;table-layout:fixed;word-wrap:break-word;>	<tbody>		<tr>			<td>qqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqqqc qqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqq</td>			<td>sssssssssssc sssssssssssssssssssss ssssssssssssssssssssssssssss sssssssssssssssssss ssssssssssssss sssssssssssssssssssssssssssssssssss ssssssssssssssssss ssssssssssssssssssssssss</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>	</tbody></table><p>In Scope</p><table border=1 cellpadding=1 cellspacing=1 style=width:400px;table-layout:fixed;word-wrap:break-word;>	<tbody>		<tr>			<td>assssssssssssssssssssssssssssssssssaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaass sssssssssssssssssssssssssssssssss sssssssssssssc sssssssss</td>			<td>weeeeeeeeeee eeeeeeeeeeeeeqqqqqqq qqqqqqqqqqqqqqqqqqqqqqq qqqqqqq qqqsaaaaaaaaaaaaaaaaaaaaaa aaaaaaa aaccccccccccccccccccccccx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xzccccccccccc</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>	</tbody></table><p>&nbsp;</p></div>"; 
	/*String fromApplication = "<p style=text-align:center;>Document of Understanding</p><p style=text-align:center;>Between</p><p style=text-align:center;>PHH</p><p style=text-align:center;>And</p><p style=text-align:center;>ServiceNow (NA)</p><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 1.1&nbsp;&nbsp;Test</b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><p>In Scope</p><p>&nbsp;</p><p>$0.00</p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 2.1&nbsp;&nbsp;Test with Service_In_Scope Variable</b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><p>Test data section for PHH with Out of Scope variable</p><p>&nbsp;</p><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This section provides a short description of those involved in delivering or supporting this DoU.</span></span></span></span></span></p><table cellspacing=0 class=Table style=border-collapse:collapse>	<tbody>		<tr>			<td style=background-color:#e7e6e6>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><strong><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Role or Team Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></strong></span></span></p>			</td>			<td style=background-color:#e7e6e6>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><strong><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Description</span></span></span></strong></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>L1/L2/L3 Support</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Interacts with customers, vendors and management to ensure high level of customer satisfaction. Acts as technical resource and point of escalation for team members and helps in identifying and resolving complex incidents relating to product/service installation, update, configuration, operations, or performance.</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>L4 Support</span></span></span></span></span></p>			</td>			<td style=vertical-align:top><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,</span></span></span></span></span>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Operations Architect</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This role assumes overall technical responsibility for the success of solution construction, implementation and system integration in a technology, This role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationor our customers&#39; business applications comprised of technology, service delivery processes, and organization design</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Technical Delivery PM / Focal&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&\n" + 
			"nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></span></span></p>			</td>			<td style=vertical-align:top><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery withi </span></span></span></span></span>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>qualified PM Professional that will lead complex technical project teams and manage on-time delivery within </span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Business Operations Manager (BOM)&nbsp;</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS </span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>EADS Service Line DPE</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Ensures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needs</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>EEE Account Focal Point ( to the IBM Account Team)</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Single point of contact for interactions between IBM Account Lead and EADS Project Office.</span></span></span></span></span></p>			</td>		</tr>	</tbody></table><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>The WEEE Service Line will provide L1/L2/L3/L4 Operation Support Service as follows:</span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>&nbsp;- Be responsible for applicationBe responsible for applicationBe responsible for applicationBe responsible for applicationBe responsible for application</span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>&nbsp;- Manage EEEES Support Manage EEEES Support Manage EEEES Support Manage EEEES Support service requests submitted by the IBM Account customer and/or the EADS Account focal through the North American Service Provider (NASP)&nbsp; </span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>- Manage inciden Manage incidentManage incidentManage incidentManage incident.</span></span></span></span></span></p><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>IBM Account Teams&nbsp;IBM Account TIBM Account TIBM Account TIBM Account TIBM Account TIBM Account.</span></span></span></span></span></p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 2.2&nbsp;&nbsp;One more section </b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><table border=1 cellpadding=1 cellspacing=1 style=width:100px;table-layout:fixed;word-wrap:break-word;>	<tbody>		<tr>			<td>qqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqqqc qqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqq</td>			<td>sssssssssssc sssssssssssssssssssss ssssssssssssssssssssssssssss sssssssssssssssssss ssssssssssssss sssssssssssssssssssssssssssssssssss ssssssssssssssssss ssssssssssssssssssssssss</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>	</tbody></table><p>In Scope</p><table border=1 cellpadding=1 cellspacing=1 style=width:100px;table-layout:fixed;word-wrap:break-word;>	<tbody>		<tr>			<td>assssssssssssssssssssssssssssssssssaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaass sssssssssssssssssssssssssssssssss sssssssssssssc sssssssss</td>			<td>weeeeeeeeeee eeeeeeeeeeeeeqqqqqqq qqqqqqqqqqqqqqqqqqqqqqq qqqqqqq qqqsaaaaaaaaaaaaaaaaaaaaaa aaaaaaa aaccccccccccccccccccccccx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xzccccccccccc</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>	</tbody></table><p>&nbsp;</p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p>";*/ 
			
	com.aspose.pdf.HtmlFragment xHtml = new com.aspose.pdf.HtmlFragment(fromApplication);
	// dataDir is the physical path where image is located
	xHtml.setHtmlLoadOptionsOfInstance(new com.aspose.pdf.HtmlLoadOptions(basePath + "///")); // it is necessary to add three slashes at the end of the path;
	page.getParagraphs().add(xHtml);

	doc.save(basePath + "xHtmlInPdf.pdf");

Hi Asad,

Hope Aspose will show up a working solution for this type of HTML table conversions…

Do you also see te table stretching in pdf?

@swarna.padma

We have tested the scenario in our environment and observed that long words, in the XHTML string, used to get out of table cell boundaries. However, we have also tried to generate PDF document by following code snippet, but did not get much success.

try{
   String xHtmlString = "<p style=text-align:center;>Document of Understanding</p><p style=text-align:center;>Between</p><p style=text-align:center;>PHH</p><p style=text-align:center;>And</p><p style=text-align:center;>ServiceNow (NA)</p><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 1.1&nbsp;&nbsp;Test</b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><p>In Scope</p><p>&nbsp;</p><p>$0.00</p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 2.1&nbsp;&nbsp;Test with Service_In_Scope Variable</b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><p>Test data section for PHH with Out of Scope variable</p><p>&nbsp;</p><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This section provides a short description of those involved in delivering or supporting this DoU.</span></span></span></span></span></p><table cellspacing=0 class=Table style=border-collapse:collapse>	<tbody>		<tr>			<td style=background-color:#e7e6e6>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><strong><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Role or Team Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span></strong></span></span></p>			</td>			<td style=background-color:#e7e6e6>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><strong><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Description</span></span></span></strong></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>L1/L2/L3 Support</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Interacts with customers, vendors and management to ensure high level of customer satisfaction. Acts as technical resource and point of escalation for team members and helps in identifying and resolving complex incidents relating to product/service installation, update, configuration, operations, or performance.</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>L4 Support</span></span></span></span></span></p>			</td>			<td style=vertical-align:top><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,</span></span></span></span></span>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This key leader may be an Infrastructure Architect or Specialist acting as a role model and discharge technical management within a team,</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Operations Architect</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>This role assumes overall technical responsibility for the success of solution construction, implementation and system integration in a technology, This role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationThis role assumes overall technical responsibility for the success of solution construction, implementation and system integrationor our customers&#39; business applications comprised of technology, service delivery processes, and organization design</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Technical Delivery PM / Focal" + 
				" </span></span></span></span></span></p>			</td>			<td style=vertical-align:top><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery within qualified PM Professional that will lead complex technical project teams and manage on-time delivery withi </span></span></span></span></span>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>qualified PM Professional that will lead complex technical project teams and manage on-time delivery within </span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Business Operations Manager (BOM)&nbsp;</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS The Manager within GTS </span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>EADS Service Line DPE</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Ensures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needsEnsures the IBM Account needs</span></span></span></span></span></p>			</td>		</tr>		<tr>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>EEE Account Focal Point ( to the IBM Account Team)</span></span></span></span></span></p>			</td>			<td style=vertical-align:top>			<p><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>Single point of contact for interactions between IBM Account Lead and EADS Project Office.</span></span></span></span></span></p>			</td>		</tr>	</tbody></table><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>The WEEE Service Line will provide L1/L2/L3/L4 Operation Support Service as follows:</span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>&nbsp;- Be responsible for applicationBe responsible for applicationBe responsible for applicationBe responsible for applicationBe responsible for application</span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>&nbsp;- Manage EEEES Support Manage EEEES Support Manage EEEES Support Manage EEEES Support service requests submitted by the IBM Account customer and/or the EADS Account focal through the North American Service Provider (NASP)&nbsp; </span></span></span></span></span></p><p style=margin-left:40px><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>- Manage inciden Manage incidentManage incidentManage incidentManage incident.</span></span></span></span></span></p><p style=margin-left:0in><span style=font-size:11pt><span style=font-family:&quot;Times><span style=font-size:10.0pt><span style=font-family:&quot;Arial&quot;,sans-serif><span style=color:black>IBM Account Teams&nbsp;IBM Account TIBM Account TIBM Account TIBM Account TIBM Account TIBM Account.</span></span></span></span></span></p></div><p><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </u></p><b> 2.2&nbsp;&nbsp;One more section </b><br/><div style=padding: 1px; width: 500px; word-break: break-all; word-wrap: break-word;><table border=1 cellpadding=1 cellspacing=1 style=width:400px;table-layout:fixed;word-wrap:break-word;>	<tbody>		<tr>			<td>qqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqqqc qqqqqqqqqqqqqqqqqqqqqqqqqqqq qqqqqqqqqqqq</td>			<td>sssssssssssc sssssssssssssssssssss ssssssssssssssssssssssssssss sssssssssssssssssss ssssssssssssss sssssssssssssssssssssssssssssssssss ssssssssssssssssss ssssssssssssssssssssssss</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>	</tbody></table><p>In Scope</p><table border=1 cellpadding=1 cellspacing=1 style=width:400px;table-layout:fixed;word-wrap:break-word;>	<tbody>		<tr>			<td>assssssssssssssssssssssssssssssssssaaaaaaaaaa aaaaaaaaaa aaaaaaaaaaaaass sssssssssssssssssssssssssssssssss sssssssssssssc sssssssss</td>			<td>weeeeeeeeeee eeeeeeeeeeeeeqqqqqqq qqqqqqqqqqqqqqqqqqqqqqq qqqqqqq qqqsaaaaaaaaaaaaaaaaaaaaaa aaaaaaa aaccccccccccccccccccccccx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xzccccccccccc</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>		<tr>			<td>&nbsp;</td>			<td>&nbsp;</td>		</tr>	</tbody></table><p>&nbsp;</p></div";
	        
InputStream stream = new ByteArrayInputStream(xHtmlString.getBytes(java.nio.charset.StandardCharsets.UTF_8.name()));
com.aspose.pdf.Document doc = new com.aspose.pdf.Document(stream, new HtmlLoadOptions());
doc.save(dataDir + "xHtmlInPdf.pdf");
}catch(Exception e){
e.printStackTrace();
}

Hence, we have logged an issue as PDFJAVA-37299 in our issue tracking system. Our product team will further investigate the reasons behind the issue and we will keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for this inconvenience.

Hi Asad,

Appreciate your support.

Do you have any update on this?

@swarna.padma

Thanks for your inquiry.

As the issue has recently been logged in our issue tracking system, so I am afraid that it is not resolved yet. However, product team has started an investigation against the issue and as soon as they share some significant updates regarding resolution progress, we will let you know. Please spare us little time.

We are sorry for the inconvenience.

Hi Asad,

Do you have an update on this issue? any solution could be found

@swarna.padma

Thanks for your inquiry.

I would like to share with you that investigation against earlier logged issue has been started but due to high priority issues in the queue, this issue is still pending to be resolved. As soon as we receive some significant updates regarding resolution progress of your issue, we will surely let you know. Please be patient and spare us little time.

We are sorry for the inconvenience.