Print Page | Close Window

Page conversion

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1937
Printed Date: 22 Nov 24 at 7:18PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Page conversion
Posted By: hlau
Subject: Page conversion
Date Posted: 18 Aug 11 at 8:17PM
Is there a feature that Quick PDF can load a legal page PDF and save as a letter page PDF with fit to page enhancement?
 
Is like shrunk the height and fit the width?



Replies:
Posted By: Ingo
Date Posted: 20 Aug 11 at 9:32AM
Hi hlau!

No... but you can create this functionality
by your own with QuickPDF.
Have a look at the online reference...

Cheers, Ingo


Posted By: AndrewC
Date Posted: 21 Aug 11 at 4:50AM
You could write your own function using the CapturePage and DrawCapturedPage functions.

You can play with this code to convert multiple pages as well as implementing fit to page type functionality.

            QP.LoadFromFile('myfile.pdf');   // assume it is a 1 page document.
            QP.NewPage();   // Create a blank 2nd page we can draw into after.

            // Capture the second page in the merged document
            int CapturedPageID = QP.CapturePage(1);   // This captures and then deletes page 1.

            QP.SetPageSize("Letter");

            // Draw the captured page onto page 1 - this is the NewPage() we added above.
            int ret = QP.DrawCapturedPage(CapturedPageID, 0, 0, QP.PageWidth(), QP.PageHeight());

            QP.SaveToFile("converted.pdf");




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk