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 - CopyPageRanges does not follow page order
  FAQ FAQ  Forum Search   Register Register  Login Login

CopyPageRanges does not follow page order

 Post Reply Post Reply
Author
Message
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Topic: CopyPageRanges does not follow page order
    Posted: 13 Jul 12 at 1:07PM
Hello,

I have a document containing 10 pages. I call CopyPageRanges(DocumentID, '1,5,4,3,2,6,10,9,8,7'). The pages are copied but still are in original order.

Can anyone please confirm or disprove my problem with CopyPageRanges?

Regards,
Jan
Back to Top
jpbro View Drop Down
Senior Member
Senior Member


Joined: 29 Mar 11
Status: Offline
Points: 77
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jul 12 at 3:35PM
According to the documentation, that is the designed behaviour:

"The list of pages will be sorted resulting in the pages being extracted in numerical order. "

http://www.quickpdflibrary.com/help/quickpdf/CopyPageRanges.php
Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 13 Jul 12 at 3:47PM
But it definitely worked in previous versions of QuickPDF. I hope that the programmers of QuickPDF can confirm this.
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: 13 Jul 12 at 5:36PM
Hi Jan!

i think Jopbro is right.
For what you wanna do you should use the move-functionalities.

Cheers, Ingo
Back to Top
JanN View Drop Down
Senior Member
Senior Member


Joined: 29 Oct 05
Location: Germany
Status: Offline
Points: 116
Post Options Post Options   Thanks (0) Thanks(0)   Quote JanN Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jul 12 at 1:15PM
Maybe it always worked this way in the "new" QuickPdf library. But I am quite sure that it worked differently in the original library. Until a few days ago I still used version 7.18 in one of my projects and it worked. Are you absolutely sure that there were no changes made in the meantime? And when there are such changes, what was the intention to do so? I think maintaining the given page order was the better approach. ;)

If I use the current functionality, I have little problems getting the pages into the right order. I have a string "1,5,4,3,2,6,10,9,8,7". When I call CopyPageRanges I get a document containing the pages "1,2,3,4,5,6,7,8,9,10". When I now want to move page after page, I sometimes have to increase following page numbers and sometimes not. Does somebody have a code snippet for this topic?
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post Posted: 17 Jul 12 at 2:23PM
CopyPageRanges was changed to sort pages back in QPL 7.21 - That is just before my time so I don't know the reasons why.

I have just confirmed that the documentation was changed in 7.21 because that was the way the function was working and the only way it could work without having write lots more code to reorder pages.

Andrew.


Edited by AndrewC - 17 Jul 12 at 4:19PM
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