PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 1:06 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri May 08, 2009 11:24 am 
Offline

Joined: Fri May 08, 2009 10:03 am
Posts: 3
Hello all

i know how to insert pictures into PDF document

but i want to resize them so that the whole image is visible (i am dealing with A4 images)

also i find that the pdf file is very large ... how can i decrease it's size ?

and here is a sample image

Image


Thanks in Advance


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri May 08, 2009 11:27 am 
Offline

Joined: Fri May 08, 2009 10:03 am
Posts: 3
no no :D i think size is ok :D but i still need to resize picture


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon May 11, 2009 8:23 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Hi!

When drawing images on PDF pages you specify how large they will be drawn.
Check page 5 of the Graphics sample.

Calculating the maximum size while maintaining the aspect ratio is a simple task.

Reducing the file size is not yet implemented in PDFsharp. But this can be done with GDI+ functions.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 174 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