Print Page | Close Window

DPLExtractFilePagesEx producing blank pages

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=3861
Printed Date: 01 May 24 at 10:48PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: DPLExtractFilePagesEx producing blank pages
Posted By: kukulkan
Subject: DPLExtractFilePagesEx producing blank pages
Date Posted: 18 Nov 20 at 2:01PM
I want to extract single pages from a password protected PDF using DPLExtractFilePagesEx function (QuickPDF Library 18 for Windows, working on Windows 10). I get success (1) as result and no error code. But the extracted pages (eg page 1) are only some blank page. What is wrong?

This is my test document:
https://www.regify.com/DOWNLOAD/Lohnabrechnung-104-crypt123456.pdf" rel="nofollow - https://www.regify.com/DOWNLOAD/Lohnabrechnung-104-crypt123456.pdf

The password is 1234567 (not 123456 like in the name).

This document was created using Word, saved as encrypted PDF. Online tools for validation and PDF readers do not see any errors and can decrypt and display it with no problems.

PS. I tried the support form at http://www.quickpdflibrary.com/support/support-query.php but the QuickPDF versions end at version 11 (we're on 18 now) and Windows 8 (we're on 10 now). Upon submit, I only get a blank page. No confirmation, no email. This is completely broken.



Replies:
Posted By: kukulkan
Date Posted: 18 Nov 20 at 3:08PM
Update: I consider this to be a bug in DPLExtractFilePagesEx because if I do manually, it works.

Manual way:
DPLLoadFromFile
DPLDecrypt
DPLExtractPages
DPLSaveToFile
DPLRemoveDocument

Pages extracted like this are working fine!

How fast is Debenu fixing such issues and providing new fixed version 18? Is this something I can wait for or do I really have to simulate DPLExtractFilePagesEx using above method? And how do I report this finding, if the support form does not work (as written in first post)?


Posted By: tfrost
Date Posted: 18 Nov 20 at 4:31PM
I do not use those features myself so cannot suggest anything, but another user here may be able to.  For support on recent QPDF versions, try https://www.foxitsoftware.com/support and log in. or create an account, to open a ticket there.  There is an option in the product list to select Quick PDF Library for a new ticket.


Posted By: Ingo
Date Posted: 18 Nov 20 at 7:05PM
Hi Kukulkan,

try a LastErrorCode directly after your LoadFromFile...
Perhaps the resulting error code can give a hint.
What's your programming language?
Strings in QuickPDF are processed as unicode.
This is the correct link you should use asking for official support:
https://www.debenu.com/support/
At the top right box you'll find all you need.
I don't think that there's an error regarding password processing...

Cheers and welcome here,
Ingo




-------------
Cheers,
Ingo



Posted By: kukulkan
Date Posted: 23 Nov 20 at 3:22PM
Hello,

thanks for the hints and information, but I'm using the most recent version 18 and not an older one.

Also, the function does not return an error. My code is checking every call for success codes. It simply writes a blank file with 136KB but with no visible content. It works if I do it manually like described. So there must be an issue in the library.

I'm using Unicode for the names and there is no issue with the file names at all, even with Chinese filenames. It reads without error and saves a PDF file, but it is with blank content.



Posted By: Ingo
Date Posted: 23 Nov 20 at 8:15PM
Did you try both functions?
Regarding ...Ex: Did you try all three options?
This here is only the user forum... Seems nobody had your probs so far ;-)



-------------
Cheers,
Ingo




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