LEADTOOLS Support
Document
Document SDK Questions
Re: read password protected PDF and extract a portion
#1
Posted
:
Monday, June 13, 2016 6:51:04 AM(UTC)
Groups: Registered, Tech Support
Posts: 8
How can I open a password protected PDF, extract a specific portion of it and have the extract portion display in a picture box? My main issue is with opening the password protected PDF.
#2
Posted
:
Monday, June 20, 2016 8:29:44 AM(UTC)
Groups: Registered
Posts: 119
Was thanked: 4 time(s) in 4 post(s)
Keitha,
Sometimes, a PDF document is encrypted using a password which doesn't allow you to load it directly. To overcome this issue, simply check whether the PDF file is encrypted or not using the Leadtools.Documents.Document.IsEncrypted property:
https://www.leadtools.com/help/leadtools/v19/dh/dox/leadtools.documents~leadtools.documents.document~isencrypted.html
If the property is True, you can supply the password to decrypt the PDF file using Leadtools.Documents.Document.Decrypt() method:
https://www.leadtools.com/help/leadtools/v19/dh/dox/leadtools.documents~leadtools.documents.document~decrypt.html
You can also refer to the following help topic for more details:
https://www.leadtools.com/help/leadtools/v19/dh/to/leadtools.topics.documents~dox.topics.documents_encryption.html
Nick Villalobos
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Questions
Re: read password protected PDF and extract a portion
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.