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!
CopyPageRanges results with blank pages |
Post Reply |
Author | |
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
Posted: 05 Jul 06 at 2:18AM |
Hi Extracting pages from one document and inserting them in a new document is what I am trying to do with CopyPageRanges. For many documents this works perfectly. However I have some documents where just blank pages result in the new document. As I have not much experience with this feature maybe I have overlooked something and somebody could give me a hint. The code I'm using to do the extraction looks like this:
The return values from the function calls allways is 1 (success). Kind Regards |
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
If there is no workaround (different function or whatever) for the above mentioned problem, maybe somebody can recommend me an affordable royalty free different library which I can try to use to overcome the problem.
|
|
bogey
Senior Member Joined: 30 Nov 05 Location: United States Status: Offline Points: 50 |
Post Options
Thanks(0)
|
Most of the time I have found blank pages are the result of document security preventing access to the document. Check the security properties of the source file to ensure extraction is permitted. |
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Yeah!!! You are perfectly right. Thank you! Documents with CopyPageRanges CopyPageRanges CopyPageRanges I think it's the SecurityItem 8 (Content Accessibility) which prevents the function CopyPageRanges to work, isn't it? |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
Accessibility has to do with things like text-to-speech, etc. for the disabled. More likely the Document Assembly item is causing the problem.
If you know the owner password for the PDFs, you can unlock them using SetPassword() and Unencrypt(). |
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Hi There must be a different problem. Pirmin Edited by Pirmin |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
From their web site:
Supports "owner" password protected PDF files; Does this mean, unlike QuickPDF, that it bypasses owner password protection? Most legitimate products respect the protection, but since the PDF spec details how it works, it can be bypassed. For example, when I try to "burst" the "iSEDQuickPDF 5.11 Reference Guide.pdf" with pdftk, it refuses to do so without the owner password. Edited by chicks |
|
chicks
Debenu Quick PDF Library Expert Joined: 29 Oct 05 Location: United States Status: Offline Points: 251 |
Post Options
Thanks(0)
|
Interesting - I downloaded it out of curiosity, and it definitely bypasses the PDF's security.
More interestingly, it appears to be using the open-source iText PDF library, and the compilation techniques shown by Sid Steward with his open-source pdftk project. Then they are turning around a selling a product based on these open-source projects, without adding a bit of value to them. There are several free GUI front-ends for pdftk. I suppose there are lots of people who don't know about the open-source projects this is based on who are paying for this. At least they give credit to Bruno Lowagie and GNU... |
|
Pirmin
Team Player Joined: 28 Nov 05 Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Hi I was wondering if it is possible to make our library to support owner password protected PDF files as well and have been trying to find the concerning code for some hours without any success. Just for curiosity, if somebody takes the time and succeeds, I am interested to see the result. Remark: I'm not sure if I can answer your posts during one month. Pirmin |
|
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