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

Modify Page Size of Existing Document
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1605
Page 1 of 1

Author:  Nomad Monday [ Thu Mar 31, 2011 4:45 am ]
Post subject:  Modify Page Size of Existing Document

Hi, I'm pretty new to using PDF Sharp and I'm having trouble figuring out how to modify the page size of an existing document. My goal is to endorse text onto an existing PDF without overlapping the page contents. I've figured out how to draw the text using XGraphics, but I can't seem to figure out how to shrink the page contents so the text doesn't overlap. Any help is appreciated, thanks!

Author:  Thomas Hoevel [ Thu Mar 31, 2011 8:46 am ]
Post subject:  Re: Modify Page Size of Existing Document

Hi,

I'm afraid I don't fully understand what you want to achieve.
I'd do it like the Two Pages on One sample does it (it imports existing pages and uses them at reduced size).

Author:  Nomad Monday [ Fri Apr 01, 2011 2:06 am ]
Post subject:  Re: Modify Page Size of Existing Document

Ah, that helps. That's along the lines of what I'm looking for, but the output PDF loses it's bookmarks. I see the sample of how to create new bookmarks, but I'm having trouble figuring out how to grab the bookmarks from the original PDF.

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