PDFsharp & MigraDoc Foundation

Create a PDF with BW Image
Page 1 of 1

Author:  cyberman [ Mon Dec 04, 2006 4:32 pm ]
Post subject:  Create a PDF with BW Image

Hi all,
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.
Too Big!!
what is the way to tell PdfSharp that my TIFF image is BW image.

Thank You.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group