PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 04, 2024 12:58 am

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
PostPosted: Mon Oct 05, 2009 5:08 pm 
Offline

Joined: Mon Oct 05, 2009 4:49 pm
Posts: 2
Hi,

I was able to combine serveral PDF files into one pdf file using PdfSharp. Some of my pdf files have legal size pages. How can I convert (shrink) the legal size page to letter size so all pages in the new pdf file have same letter size? In other words, is there a way to shrink the content of the legal size page to fit onto a letter size page?

Thank you,

vn


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 06, 2009 8:18 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3097
Location: Cologne, Germany
Hi!

Using XObject and DrawImage you can draw existing pages in new files - in any size, any angle, ...

See here:
http://www.pdfsharp.net/wiki/Graphics-sample.ashx
(last page of sample output)

Or here:
http://www.pdfsharp.net/wiki/Preview-sample.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Tue Oct 06, 2009 10:57 pm 
Offline

Joined: Mon Oct 05, 2009 4:49 pm
Posts: 2
Thanks for the tip, Thomas. That's exactly what I'm looking for.


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