Print Page | Close Window

Splitting large PDFs

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=2667
Printed Date: 25 Apr 25 at 11:21AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Splitting large PDFs
Posted By: gkbeckmann
Subject: Splitting large PDFs
Date Posted: 13 Jun 13 at 11:54AM
I have an application for splitting multipage PDFs. It uses DPLLoadFromFile and DPLExtractPages to generate a new PDF for every page which it then writes out as a completely new PDF. So far so good.

Some PDFs are too large to load into memory so I plan to use the direct access functions. But I can't find a direct access function to copy a page from the opened PDF file into a new PDF document. Effectively I want a direct access version of DPLExtractPages.

I've searched the documentation, the examples, the forums and the Internet and no joy. Probably I'm just being unimaginative or missing something obvious. But I would really appreciate any help or tips.

Thanks, Gordon



Replies:
Posted By: AndrewC
Date Posted: 14 Jun 13 at 3:11AM
Gordon,

QP.ExtractFilePages internally uses the DA code to split PDF's.

We have recently made some improvements to this function in the 9.15 betas and have also added QP.ExtractFilePagesEx with extra options.

Also if you call QP.TransformFile to optimise the PDF file first then you may find the whole split process will run much faster in certain cases depending on how optimised the input PDF file is.  TransofrmFile can also remove some unused xref entries from the output file thus making the output files smaller also.

The latest improvements can be found on DQPL 9.15 Beta 2 which can be downloaded from here

http://www.debenu.com/blog/debenu-quick-pdf-library-9-15-beta-2-released.html

Andrew.



Posted By: gkbeckmann
Date Posted: 20 Jun 13 at 4:08PM
That's absolutely brilliant. Thank you. Working a treat. Now that I know I realise that I should have spotted it from the documentation, next time I'll look harder.



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