Free Support Forum - aspose.com

Borders appear after export to WordML

Dear Sir or Madam,


We recently have got the issue:
1. Create a document with images.
2. Create another document with one image and set Text Wrapping for this image to Tight or Box or anything but default and a border.
3. Open first document and save to PDF - notice that there is no borders around the images.
4. Open second document, save it to a stream as WordMl, read from, stream save as PDF.
Since now every document you open and save to PDF will have the borders around the images, so
5. Repeat step 3 and notice that images have the borders now.
Project to reproduce the issue is attached.


Hi Alex,

Thanks for your inquiry. We have tested the scenario and have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-14059. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Hi Tahir,

Thank you for your reply. Meanwhile I have one more question. We currently use AW-13 (because of this issue we cannot switch to AW-16 <a href=“http://www.aspose.com/community/forums/thread/767884.aspx” style=“font-family: “Times New Roman”, serif; font-size: 12pt;”>http://www.aspose.com/community/forums/thread/767884.aspx)
In AW 16 the “bad” image is inserted as DrawingML object. How can we change Text Wrapping for the nodes of this type? As we are a web based application now if a customer has it in its report and saves it to PDF it breaks every output for every customer and it’s a very destructive behavior.

Regards,
Alex
Hi Alex,

Thanks for your inquiry.
AlexanderNovickov:
We currently use AW-13 (because of this issue we cannot switch to AW-16 http://www.aspose.com/community/forums/thread/767884.aspx)
We have already answered your query here in this post. Please follow that thread for further proceedings.
AlexanderNovickov:
In AW 16 the "bad" image is inserted as DrawingML object. How can we change Text Wrapping for the nodes of this type? As we are a web based application now if a customer has it in its report and saves it to PDF it breaks every output for every customer and it's a very destructive behavior.
ShapeBase.WrapSide property specifies how the text is wrapped around the shape and ShapeBase.WrapType property defines whether the shape is inline or floating. For floating shapes defines the wrapping mode for text around the shape.

Could you please share your input, output, and expected output documents along with simplified code example here for testing? We will investigate the issue on our side and provide you more information about your query.

Hi Tahir,

I’ve already shared the input file in the project attached but just in case attaching it once again.
Codewise - I’d like to be able to do something like this but DrawMl cannot be cast to ShapeBase it seems:
Document doc1 = new Document(@“d:\Code\AsposeBorder\TestBorder\Bad.docx”);
NodeCollection nodes = doc1.GetChildNodes(NodeType.DrawingML, true);
ShapeBase bas = (ShapeBase)nodes[0];
bas.WrapType = WrapType.Inline;
Regards,
Alex
Hi Alex,

Thanks for sharing the detail. We removed the DrawingML from our APIs in Aspose.Words 15.2.0. Please read about public API changes in Aspose.Words 15.2.0 from following link.

Public API Changes in Aspose.Words 15.2.0

Please use latest version of Aspose.Words for .NET 16.7.0 and change NodeType.DrawingML to NodeType.Shape in your code.

Hi Tahir,


As I pointed out in the first message we cannot use AW-16 until it has fix (or we have a workaround) for WORDSNET-14062

Regards,
Alex
Hi Alex,

Thanks for sharing the detail.

We will inform you via this forum thread once this issue is resolved. Thanks for your patience.

Hi Tahir,


Still you didn’t ask my question if there is a workaround I can use in AW-13 to change Text Wrapping for DrawingMLs?

Regards,
Alex
Hi Alex,

Thanks for your inquiry.

Please use following workaround for issue (WORDSNET-14062). Hope this helps you.

AwDocumentBuilder builder = new AwDocumentBuilder();

Document awNote = builder.VisitTable();

foreach (Table table in awNote.GetChildNodes(NodeType.Table, true))

{

table.ClearBorders();

}

awNote.Save(@"Out.docx");


Unfortunately, there is no workaround available for WORDSNET-14059. We apologize for your inconvenience.

Hi Tahir,


Thank you for your reply. Unfortunately this workaround will not work as it will clear individual borders set for individual cells.
Is there ETA for proper fix of these 2 tickets?

Regards,
Alex
Hi Alex,

Thanks for your inquiry. We try our best to deal with every customer request in a timely fashion, we unfortunately cannot guarantee a delivery date to every customer issue. Our developers work on issues on a first come, first served basis. We feel this is the fairest and most appropriate way to satisfy the needs of the majority of our customers.

Currently, your issues are pending for analysis and are in the queue. Once our product team completes the analysis of these issues, we will then be able to provide you an estimate.

Thanks for your patience and understanding.

The issues you have found earlier (filed as WORDSNET-14059) have been fixed in this Aspose.Words for .NET 16.12.0 update and this Aspose.Words for Java 16.12.0 update.


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