PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 6:19 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
 Post subject: Resize a PDF Page
PostPosted: Wed Jun 18, 2008 8:58 pm 
Offline

Joined: Wed Jun 18, 2008 8:51 pm
Posts: 1
Location: Canada
We are looking for a way to have a PDF page resized. Somehow one of our systems generated PDF Pages that are 36 inches x 48 inches, and we need to resize down to A4/Letter

We've blown the week going over the "two pages one page" example, but are hoping to rather generate a function, that would take a PDF page, and convert it to the properly sized pdf page.

The example seems to want to convert a whole document, but we only want to go as far as a page within the document. Is there a better way then to conver that one (source) page, to a document, then to a form, then copy that form into the page as a graphics? Or is that the way to do it.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Jun 19, 2008 11:12 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
If you change the size of the page (dunno if this can be done with PDFsharp) then you'll also have to move and resize all the items on the page, resize the fonts, change the widths of lines, ...
And all that to save a few bytes of overhead?

So I think the "two pages on one" sample shows what you have to do.
It's simple to program, it runs fast - I'd do it that way.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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 396 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