Print Page | Close Window

Page extraction on PDF Image

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=2980
Printed Date: 26 Apr 24 at 4:23PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Page extraction on PDF Image
Posted By: BenLaz
Subject: Page extraction on PDF Image
Date Posted: 03 Oct 14 at 8:46AM
Hello,

We are using PageExtraction on a pdf image (20 pages). We extract one page (in our case the last one) and the resulting PDF has almost the same size than the original, as if QPDF keeps images of other pages in the resulting PDF.

How can we extract pages, conserving uniquely objects of those pages in the resulting PDF ?

Best regards



Replies:
Posted By: Ingo
Date Posted: 06 Oct 14 at 12:17PM
Hi Ben,
 
after PageExtraction you should use DeletePages:
http://www.debenu.com/docs/pdf_library_reference/DeletePages.php" rel="nofollow - http://www.debenu.com/docs/pdf_library_reference/DeletePages.php
PageExtraction extracts only the pagecontent - the page will stay.
 
Cheers, Ingo


-------------
Cheers,
Ingo



Posted By: BenLaz
Date Posted: 06 Oct 14 at 12:50PM
Thank you for your answer.

I've made a mistake in my initial post : we are using ExtractFilePages function.

Let's say we have a PDF with 20 pages (c:\test.pdf) we want to extract the ultimate page to a new file (c:\testextract.pdf) so we do :

oPDF.ExtractFilePages('c:\test.pdf', '', 'c:\testextract.pdf', '20');

And after the call the resulting file (c:\testextract.pdf) has almost the same size than the original file.




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