Incorrect horizontal border selected for vertically merged cells in output PDF using .NET

Hi,
there is problem with table layout after converting DOC to PDF. Some additional lines appear in result PDF.
I’m attaching screenshot with details and source DOC document for testing.
Please let me know if you have any workaround fot this issue.

Thanks in advance for help.

Jakub Mytnik

Hi Jakub,

Thanks for your query. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-6745 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi,
thank you for reply. Can you provide workaround for this issue? for example to change something in table settings

thanks,
Jakub Mytnik

Hi Jakub,

Thanks for your query. Unfortunately, there is no workaround available for this issue (WORDSNET-6745). However, we will update you via this forum thread once this issue is resolved.

We appreciate your patience.

Hi,
can you provide me some information about this issue? Is it still unresolved?

Thanks in advance.
JM

@jmytnik

Thanks for your patience.

I am afraid this issue WORDSNET-6745 has now been postponed till a later date due to some other important issues and new features. We will inform you as soon as there are any further developments. We apologize for your inconvenience.

Please use following code snippet as a workaround.

Document doc = new Document(MYDir + "ABL_FTF.doc");

for(Table table : (Iterable<Table>) doc.getChildNodes(NodeType.TABLE, true))

{

for (Row row : table.getRows())

{

for (Cell cell : row.getCells())

{

if (cell.getCellFormat().getVerticalMerge() != CellMerge.NONE)

{

if(cell.getCellFormat().getBorders().getTop().getLineWidth() == 0.0 || cell.getCellFormat().getBorders().getBottom().getLineWidth() == 0.0)

cell.getCellFormat().getBorders().clearFormatting();

}

}

}

}

doc.save(MYDir + "AsposeOut-Java.pdf");

Hi,
thank you for workaround. It works great

Hi Jakub,


Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.

The issues you have found earlier (filed as WORDSNET-6745) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.