PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Resize a PDF Page
https://forum.pdfsharp.net/viewtopic.php?f=2&t=414
Page 1 of 1

Author:  LCSSoft [ Wed Jun 18, 2008 8:58 pm ]
Post subject:  Resize a PDF Page

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.

Author:  Thomas Hoevel [ Thu Jun 19, 2008 11:12 am ]
Post subject: 

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/