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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - DeletePages
  FAQ FAQ  Forum Search   Register Register  Login Login

DeletePages

 Post Reply Post Reply
Author
Message
darkv View Drop Down
Team Player
Team Player
Avatar

Joined: 17 Jan 11
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote darkv Quote  Post ReplyReply Direct Link To This Post Topic: DeletePages
    Posted: 18 Nov 11 at 5:34PM
Does someone have explanation on deletepages function than does not remove the requested pages , but just emptying them...

Can i do a loop to remove on a page per page basis without saving the file between two deletions?

The return parm from deletepages is still 0

i used deletepages (j,1) where j is my loop index

context : pdflib 7.26, vb.net

Thanks in advance

Rgds
Eric

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 11 at 7:58PM
Hi Eric!

DeletePage works. Perhaps your document has only one remaining page and you wanna delete it. This isn't possible 'cause a pdf-document needs at least one page. The other way round it's so that there's no need after creating a new document to add a first page 'cause the first one will be created automatically.

Cheers, Ingo
Back to Top
darkv View Drop Down
Team Player
Team Player
Avatar

Joined: 17 Jan 11
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote darkv Quote  Post ReplyReply Direct Link To This Post Posted: 18 Nov 11 at 8:08PM
Ingo,

Thanks for your reply.

I thought that i tried to remove too many pages, and after checked, no.

the way i run, it's first create a working copy before delete pages, and deleting in the copy file.

Initially i suspected that looping from 1  to end will crash, because each deleted page will change the end limit ..

so i loop from end to 1 and still the same, in fact deletepages clear the pages, but the original document have 8 pages, each copy files is also 8 pages but only correct pages are not blank, other are blank..

There probably a big mistake that i don't see ;-)

Thks for your help

Cheers,
Eric
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store