PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 7:22 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Aug 15, 2014 9:11 pm 
Offline

Joined: Fri Aug 15, 2014 4:51 pm
Posts: 2
PDFSharp is great, that said, I can't figure out how to do the following things. If anyone has a suggestion/example please send it to me:

1. Add borders around the PDF page (i.e. maybe a 1/2 inch.)
2. Using PDFSharp, compress an image (.jpeg, .jpg, .jpg3, .gif, .bmp and/or .png)
3. After compressing the image (if possible) or not, to place the image in the middle of the page (both vertically and horizontally.)

Any help is much appreciated.


Top
 Profile  
Reply with quote  
PostPosted: Sun Aug 17, 2014 6:08 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 345
Re 1: Draw lines around the page (look here).
Re 2: PDFsharp does not alter images, use .NET routines for that purpose.
Re 3: You know how large the image will be drawn, you know the dimensions of page, so simple maths will calculate the x and y position you need to center the image.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


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

All times are UTC


Who is online

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