PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Merge 2 pages or not based on their content height

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
danielflippance



Joined: 25 Jan 2008
Posts: 1

PostPosted: Fri Jan 25, 2008 12:41 am    Post subject: Merge 2 pages or not based on their content height Reply with quote

Hi guys,
How do I determine the height of the content on a Page, not the height of the Page itself?

What I'm trying to do is merge 2 Pages into 1 Page IF the height of the content of Page1 + height of content of Page 2 is less than the available height on a single page.

eg: Assuming available Page height is 1000 for both Page 1 and Page 2:

- If Page 1 content height is 200, Page 2 content height is 400, merge into a single page. Page 1 takes up 20% of the page, Page takes up 40% of the page.

- If Page 1 content height is 400, Page 2 content height is 800, leave as two pages.

None of the samples I've seen describe how to do this. The TwoPagesOnOne sample does not solve this problem as it assumes each of the 2 pages take up exactly 50% of the page, whereas I need to calculate the 2 percentages and see if their sum is less than 100%.

Cheers,
Dan
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com