Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Splitting large PDFs |
Post Reply ![]() |
Author | |
gkbeckmann ![]() Beginner ![]() Joined: 13 Jun 13 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
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. Edited by AndrewC - 14 Jun 13 at 3:16AM |
|
![]() |
|
gkbeckmann ![]() Beginner ![]() Joined: 13 Jun 13 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store