PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Create a PDF with BW Image https://forum.pdfsharp.net/viewtopic.php?f=2&t=34 |
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. Code: 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. Riccardo. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |