Hi!
sasi kumar wrote:
I tried to change the page size based on the size of the image, but it does not allow me to
change individual page since its a paragraph, i have marked in red color.
PageSize is a property of the section. You can start a new section for every image and set the PageSize of this section to your needs (do not modify MigraDoc's DefaultPageSize - create a copy (Clone()) and modify that).
Please note that page size is specified in Points (not pixels). Not all image files have the correct size set. If images come from different sources, page sizes may vary very much.
I think it's wrong to change the size of every page according to the image.
I'd use a fixed page size and draw the image as large as possible maintaining it's aspect ratio. This is easier for the user flipping through the PDF (just my humble opinion).