Hi, I am new to PdfSharp and MigraDoc
I have a requirement where I have to create a Pdf document which has a table (which may spread across multiple pages).
e.g.
Expense date Description Category Amount spent Receipt
-------------------------------------------------------------------------------------
01-01-2009 Lunch at McD Food $50
View01-01-2009 Taxi to station Travel $30
View- - - -
View--------------------------------------------------------------------------------------
Below the table i need to put some images. For each row in the table above there is an image at the bottom. The last cell of each row in the table contains a hyperlink to the associated image at the bottom (basically a hyperlink). So clicking on View will take to the respective image.
This can be easily done through MigraDoc
. But only if the images to be inserted in the Pdf are available in form of file because MigraDoc use file based image. My images are in memory and not as file.
PdfSharp has the capability to add image from memory, but the rest of the things are not as easy as they are in MigraDoc (automatic page break, Bookmarks, etc). However i read somewhere that we can use both PdfSharp and MigraDoc to do this. It was suggested to create document using MigraDoc and place some place holders where ever image is required. Then using PdfSharp replace those placeholders with images.
But i cant figure out how to do it. I searched for some samples , to how to find the required placeholders and replace it with image but could not find any.
Can you please help me (with some sample code), for how to insert placeholders from MigraDoc and then how to replace it with images using PdfSharp.
Hope to hear soon.
Thanks in advance