Word to PDF - Text Box borders

Hi,

I'm utilising Aspose.Word & Aspose.PDF to convert a Word doc to PDF. We have some 'borderless' textboxes in the Word doc. These are being rendered with borders.

Code is as follows:

string fname = "word2";

Document d = new Document("c:\\" + fname + ".doc");

d.Save("c:\\" + fname + ".xml",SaveFormat.FormatAsposePdf);

Pdf pdf = new Pdf();

pdf.BindXML("c:\\" + fname + ".xml",null);

pdf.Save("c:\\" + fname + ".pdf");

It looks like it the saving of the word doc to xml is where the anomoly happens as the xml has the following:

- <Border>
<Top Color="rgb 0 0 0" LineWidth="0.125" />
<Left Color="rgb 0 0 0" LineWidth="0.125" />
<Bottom Color="rgb 0 0 0" LineWidth="0.125" />
<Right Color="rgb 0 0 0" LineWidth="0.125" />
Border>
Any help would be appreciated.

Regards,

Gary Woods.

Hi Gary,

Thank you for considering Aspose.

This behaviour is unfortunately expected. We will improve conversion of textboxes in the future. Meanwhile, you can use tables without borders to position your text.

Dmitry,

Thanks for your quick response.

Do you have any timescales for the resolution of this behaviour? Unfortunately our source word docs are produced by a third party and we may find it difficult for them to use tables rather than textboxes.

Regards,

Gary Woods.

Sorry, no comments on the timescales - but we will try to improve export of textboxes as soon as possible since it is requested by many customers.

Textbox borders are exported to PDF correctly since Aspose.Word 3.3.4 released in December 2005. Get the latest version.