Joined: 04 Dec 2006
|Posted: Mon Dec 04, 2006 4:32 pm Post subject: Create a PDF with BW Image
Thank you to read this message!
I have a "Black And White" A4 TIFF image (150Kb in size).
I use this code to create a PDF Page and draw the image on it.
pPage = document.Pages.Add()
pPage.Size = PdfSharp.PageSize.A4
gfx = PdfSharp.Drawing.XGraphics.FromPdfPage(pPage)
gfx.DrawImage(image, 0, 0, pPage.Width, pPage.Height)
The problem is that the resul PDF file is 1.3Mb in size.
what is the way to tell PdfSharp that my TIFF image is BW image.