画像の中に図形を描画し、それをPDF化する

タイトルの処理を実施する場合のサンプルコードをいただけますか?

動作環境はLinux になります。

@kenable811
You need to convert the image into a pdf document, am I correct?

はい、正しいです。

PDFドキュメントに変換する前に
画像の中に図形を描画する必要があるかと想定しています。

@kenable811
The library does not have the ability to add shapes to an image.
You can see how to convert an image to a PDF document here Convert various Images formats to PDF in .NET|Aspose.PDF for .NET

承知しました。

では画像をPDF化し、そのPDF内に文字や図形を挿入することは可能だと思います。
その場合、画像の下に文字や図形が挿入されてしまうのですが、上に挿入したいです。

これは改善できますか?それとも仕様ですか?

@kenable811
I thought about this way, but there are difficulties with alignment - so that the added image is exactly in the right places in the image.
The most obvious thing is to use annotations, for example:

var circleAnnotation = new CircleAnnotation(doc.Pages[1], new Rectangle(80, 400, 180, 500));
circleAnnotation.InteriorColor = Aspose.Pdf.Color.Gray;
circleAnnotation.Color = Aspose.Pdf.Color.Red;
doc.Pages[1].Annotations.Add(circleAnnotation);