Hi,
I would like to show HTML code in a TableTDElement. Is it possible? It I try to access tdElement.getCell() I get a NullPointerException.
com.aspose.pdf.Document document = new com.aspose.pdf.Document();
ITaggedContent taggedContent = document.getTaggedContent();
StructureElement rootElement = taggedContent.getRootElement();
TableElement tableElement = taggedContent.createTableElement();
rootElement.appendChild(tableElement);
tableElement.setBorder(new BorderInfo(BorderSide.All, .3f, Color.getBlack()));
tableElement.setDefaultCellBorder(new BorderInfo(BorderSide.All, .3f, Color.getBlack()));
TableTBodyElement tableTBodyElement = tableElement.createTBody();
TableTRElement trElement = tableTBodyElement.createTR();
TableTDElement tdElement = trElement.createTD();
tdElement.setText("<b>bold text</b>");
// null pointer.
//tdElement.getCell().getParagraphs().add(new HtmlFragment("<b>bold text</b>"));
TableTDElement tdElement2 = trElement.createTD();
tdElement2.setText("NO bold text");
// Save updated PDF
document.save("Table.pdf");
Table.pdf (54.6 KB)
@businessApplications
We need to investigate this entire scenario to check the feasibility of your requirements. For the purpose, we have logged an investigation ticket as PDFJAVA-40911 in our issue management system. We will further look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.
Hello,
We would like to have an update for the PDFJAVA-40911 issue.
Thank you!
@businessApplications
The ticket was recently logged in our issue tracking system and we are afraid that it is pending for review. We will investigate and resolve it on a first come first serve basis and let you know as soon as we have some updates regarding its resolution. Please be patient and spare us some time.
We are sorry for the inconvenience.
Hello,
We would like to have an update for the PDFJAVA-40911 issue.
Thank you!
@businessApplications
We are afraid that the earlier logged issue is not yet resolved due to other issues in the queue logged prior to it. However, we will surely inform you once we have some significant updates in this regard. Please spare us some time.
We apologize for your inconvenience.
Hello,
We would like to have an update for the PDFJAVA-40911 issue.
Thank you!
@businessApplications
We are afraid that we are not in a position to share any reliable ETA at the moment as the ticket is not fully analyzed. As soon as it is completely investigated, we will be able to share some news about its resolution ETA. We have recorded your concerns and will surely inform you in this forum thread once some updates are available. Please spare us some time.
We are sorry for the inconvenience.
Hello,
We would like to have an update for the PDFJAVA-40911 issue.
Thank you!
@businessApplications
We regret to inform you that there is no update yet regarding ticket resolution at the moment. We will certainly let you know as soon as certain progress is made towards ticket fix. Your patience and comprehension is highly appreciated in this matter.
We apologize for your inconvenience.
Hello,
We would like to have an update for the PDFJAVA-40911 issue.
Thank you!
@businessApplications
We are afraid that the issue could not get resolved yet and sadly, no updates can be provided at the moment about its resolution. Your concerns have already been recorded in this regard and we will surely notify you once we have some news about issue fix.
We apologize for the inconvenience.