Please try using following code snippet to accomplish your requirement. Please note that when you need to place Text or other paragraph object on obsolete position, please try using FloatingBox object.
[C#]
Document pdfDocument = newDocument();<o:p></o:p>
pdfDocument.Pages.Add();
Page pdfPage = pdfDocument.Pages[1];
Aspose.Pdf.FloatingBox
floatBox = new Aspose.Pdf.FloatingBox(100, 10);
floatBox.Padding.Left = 165;
floatBox.Padding.Top = 553;
Aspose.Pdf.Text.TextFragment
fragment = newTextFragment("Inline Text");
The reason file appears twice in file attachment tab is because we have added file as attachment twice i.e. Once in EmbeddedFiles collection and second as FileAttachmentAnnotation. However in order to have one file in attachment tab as well as in page body area, please try using following updated code snippet.
[C#]
Document pdfDocument = newDocument();<o:p></o:p>
pdfDocument.Pages.Add();
Page pdfPage = pdfDocument.Pages[1];
Aspose.Pdf.FloatingBox
floatBox = new Aspose.Pdf.FloatingBox(100, 10);
floatBox.Padding.Left = 165;
floatBox.Padding.Top = 553;
Aspose.Pdf.Text.TextFragment
fragment = newTextFragment("Inline Text");
Thanks for your inquiry. Please note file would be attached to some icon. However, as a workaround you can reduce opacity of FileAttachmentAnnotation Icon and place it over the required text. So it will impression of Text link. Please check following code snippet for the purpose. Hopefully it will help you to accomplish the task.