Hello Hariharan!<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Thank you for these attachments. But I’m confused since they are unrelated with intermediate XML files you attached previously. They were created from different sources.
Anyway I found an easier workaround. You can change only one Z-order value in every XML file. I’m sending what I get by e-mail. Consider this fragment again:
This is the big floating box containing some others inside. And it overlaps them because ZIndex value is greater. You can change ZIndex to something like -1000 so it would be less than anything else. If you are creating all files from the same template then you will have this floating box in every file. You can find it using regular expressions and replace ZIndex. This string will occur steadily:
FloatingBox Width="480" Height="294"
ZIndex itself won’t be always -1, it might vary. So don’t rely on its original value.
To patch XML files programmatically the following approach is good to implement:
1. Save intermediate XML to a stream.
2. Read the stream as text into a string variable.
3. Apply some regex replacement logic.
4. Write the result string to another stream.
5. Bind the second stream to Aspose.Pdf.Pdf object.
6. Save PDF.
Let me know whether this helps.