Free Support Forum -

Image in the document title and the document tile are not in one row as in the original document in generated PDF document


We use Aspose.Total for Java and have the follow issue:
1. Transform MS Word 2003 and 2007 document in PDF file:
- in the generated PDF file - image in the document title and the document title are not in one row as in the original document of generated PDF document

Attach files for reproducing the problem and transformed PDF files which are broken:
- case1-original file.doc and case1-generated pdf with Aspose.pdf;
- case2-original file.docx and case2-generated pdf with Aspose.pdf.


Hi Ginka,

Thanks for your inquiry.

I am representative from Aspose.Words team. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-7866 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 Ginka,

Thanks for your patience.

On further investigation our development team came to know that they won't be able to implement the fix to your issue. Most likely, your issue will be closed with ''Won't Fix'' resolution. I am quoting developer's comment here for your reference:

Our analysis failed to discover why MS Word ignores "Left side only" text wrapping option. So we cannot make a condition in AW to ignore this option in order to fix rendering of the customer’s document. Also we cannot ignore the option unconditionally, because then other documents having this option will be broken.

Please set the Shape.WrapSide to WrapSide.Both as a workaround of this issue.

Document doc = new Document(MyDir + "case2-original file.docx");

Shape image = (Shape)doc.GetChild(NodeType.Shape, 1, true);

image.WrapSide = WrapSide.Both;

doc.Save(MyDir + "Out.pdf");