Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to have a background image in MigraDoc / PDFsharp?

I want to create a cover page that has text over a background image. Is this possible in MigraDoc / PDFsharp?

like image 365
leora Avatar asked Oct 24 '10 22:10

leora


1 Answers

Yes.

Background image can be a page from a PDF file or a "real" image (JPEG, BMP, ...).

Add the background image first at an absolute position. Following text will be rendered above the image.

See members Left, Top, RelativeVertical, RelativeHorizontal, etc. See also here (Images and TextFrames are both Shapes): http://forum.pdfsharp.net/viewtopic.php?p=3133#p3133

like image 144
I liked the old Stack Overflow Avatar answered Sep 18 '22 14:09

I liked the old Stack Overflow