PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jul 18, 2024 7:32 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: Combining pages
PostPosted: Tue Sep 21, 2010 8:10 pm 
Offline

Joined: Mon Sep 20, 2010 7:33 pm
Posts: 1
Hi,

I am using concatenating sample to combine different PDF documents together. My question is - is it possible to combine two pages on one page? For example, if I have document A with just half a page of content in it, and document B with 1.5 pages of content, can I get document C that has 2 pages of content?

Thanks
Julia


Top
 Profile  
Reply with quote  
 Post subject: Re: Combining pages
PostPosted: Wed Sep 22, 2010 11:14 am 
Offline
PDFsharp Guru
User avatar

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

This can be done, but in a limited way.
There is no clipping when drawing pages in a new document.

The complicated case (half page from A plus top half page from B1, bottom half of B1 plus top half of B2) would work, but to get the bottom half of B2 you'd have to draw the whole page with a negative offset so that the top half is not visible.
The simpler case would be drawing A halfway on the second page of B is basically the same.

The real challenge: finding free areas on the pages.
Not easy to write a program that will automatically detect unused areas.

_________________
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: Google [Bot] and 24 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