PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 14, 2024 3:41 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
 Post subject: cropping with pdfsharp
PostPosted: Thu Jul 23, 2009 5:34 pm 
Offline

Joined: Thu Jul 23, 2009 5:28 pm
Posts: 1
I'm using pdfsharp to concatenate and bookmark a collection of documents. In order to easily format these documents for a Sony reader, I was wondering if it is possible to 'crop' each page with some code that would eliminate some white space and un-needed text?

Each page of the existing file is actually mostly an image. So, I'd like to move to position x1,y1 on the page, construct a rectangle to position x2,y2, and 'crop' and retain only what is contained within the rectangle.

in effect, I'd be making the page smaller and changing the aspect ratio a little.

Can this be done, and sample code would be helpful, of course!


Top
 Profile  
Reply with quote  
PostPosted: Wed Dec 01, 2010 9:38 pm 
Offline

Joined: Wed Dec 01, 2010 9:33 pm
Posts: 1
We're working problem that could be solved with cropping as well - have there been any updates?

If not, are there any suggestions for splitting a single 17"x11" document into two separate 8.5" x 11" documents?

Thanks in advance.


Top
 Profile  
Reply with quote  
PostPosted: Thu Dec 02, 2010 9:32 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
No cropping yet.

You can draw white rectangles over the areas you want to hide.

No drawback here since the source page will be imported once and drawn on both pages.

_________________
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 39 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group