I'm using spire.doc v8.1.10
I would like to do this :
In a A.docx, I draw a simple shape, say S0, a line.
In a B.docx, I want to put a clone of S0, say S1
It works fine, even with SaveTo B.docx as in SaveTo B.pdf
But My goal is to refine position and size of this cloned shape S1.
For example, S1.Width *= 5 executes correctly, is effective in docx, but not in PDF, where the line keeps the same width as S0
Furthermore, .Left et .Name are protected properties and I cannot read or modify them.
How can I know the Name of S0 (I have actually many shapes in A.docx and I wish to distinguish them by their names) ?
How can I modify Location of S1 in docx and pdf result ?
How can I modify Size of S1 in pdf result ?
my testing code that executes correctly, but does'nt set the desired size in PDF saving.
- Code: Select all
ShapeObject line1 = line.Clone() as ShapeObject;
line1.Width *= 5;
paragraph.ChildObjects.Add(line1);