{
pdfContentByte.endMarkedContentSequence();
if (isTagEmpty)
{
pdfContentByte.beginMarkedContentSequence(new PdfStructureElement((PdfStructureElement)tagStack.peek(), PdfName.SPAN));
pdfContentByte.endMarkedContentSequence();
}
tagStack.pop();
}
prop = element.getPropertiesMap().getProperty(PROPERTY_TAG_TD);
if (prop != null && (TAG_END.equals(prop) || TAG_FULL.equals(prop)))
{
pdfContentByte.endMarkedContentSequence();
if (isTagEmpty)
{
pdfContentByte.beginMarkedContentSequence(new PdfStructureElement((PdfStructureElement)tagStack.peek(), PdfName.SPAN));
pdfContentByte.endMarkedContentSequence();
}
tagStack.pop();
}
prop = element.getPropertiesMap().getProperty(JRCellContents.PROPERTY_TYPE);
if (
prop != null
&& (JRCellContents.TYPE_CROSSTAB_HEADER.equals(prop)
|| JRCellContents.TYPE_COLUMN_HEADER.equals(prop)
|| JRCellContents.TYPE_ROW_HEADER.equals(prop)
|| JRCellContents.TYPE_DATA.equals(prop)))
{
pdfContentByte.endMarkedContentSequence();
if (isTagEmpty)
{
pdfContentByte.beginMarkedContentSequence(new PdfStructureElement((PdfStructureElement)tagStack.peek(), PdfName.SPAN));
pdfContentByte.endMarkedContentSequence();
}
tagStack.pop();
}
prop = element.getPropertiesMap().getProperty(PROPERTY_TAG_H1);
if (prop != null && (TAG_END.equals(prop) || TAG_FULL.equals(prop)))
{
pdfContentByte.endMarkedContentSequence();
if (isTagEmpty)
{
pdfContentByte.beginMarkedContentSequence(new PdfStructureElement((PdfStructureElement)tagStack.peek(), PdfName.SPAN));
pdfContentByte.endMarkedContentSequence();
}
tagStack.pop();
}
prop = element.getPropertiesMap().getProperty(PROPERTY_TAG_H2);
if (prop != null && (TAG_END.equals(prop) || TAG_FULL.equals(prop)))
{
pdfContentByte.endMarkedContentSequence();
if (isTagEmpty)
{
pdfContentByte.beginMarkedContentSequence(new PdfStructureElement((PdfStructureElement)tagStack.peek(), PdfName.SPAN));
pdfContentByte.endMarkedContentSequence();
}
tagStack.pop();
}
prop = element.getPropertiesMap().getProperty(PROPERTY_TAG_H3);
if (prop != null && (TAG_END.equals(prop) || TAG_FULL.equals(prop)))
{
pdfContentByte.endMarkedContentSequence();
if (isTagEmpty)
{
pdfContentByte.beginMarkedContentSequence(new PdfStructureElement((PdfStructureElement)tagStack.peek(), PdfName.SPAN));
pdfContentByte.endMarkedContentSequence();
}
tagStack.pop();
}