PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Nov 10, 2024 7:20 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Dec 04, 2006 4:32 pm 
Offline

Joined: Mon Dec 04, 2006 4:21 pm
Posts: 1
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group