Read Password Protected PDF and extract specific portion and show it in picture box [Resolved]

Posted by Raj.Trivedi under C# on 3/16/2016 | Points: 10 | Views : 727 | Status : [Member] [MVP] | Replies : 3
Hello Team,

I am trying to upload a password protected pdf and extract specific portion of page and show the extracted section in 2 different picture box. So what would be the best PDF plugin for this stuff.

Then brighten the section of the extracted part and print it on a pvc card using zebra printer.

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved



Responses

Posted by: Rajnilari2015 on: 3/16/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
@Raj.Trivedi,
This should be a good starting point (All the examples are provided using the 3rd party iTextSharp https://sourceforge.net/projects/itextsharp/

a) How to decrypt a pdf file by supplying password of the file as argument using c#? http://stackoverflow.com/questions/11014148/how-to-decrypt-a-pdf-file-by-supplying-password-of-the-file-as-argument-using-c

b) Using itextsharp to extract text from PDF files http://www.kunalpriyadarshi.com/2012/12/using-itextsharp-to-extract-text-from.html

c) Itextsharp text extraction http://stackoverflow.com/questions/4711134/itextsharp-text-extraction

Hope this helps

--
Thanks & Regards,
RNA Team

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakshman88 on: 3/17/2016 [Member] Starter | Points: 25

Up
0
Down
Hello Raj,

Like Rajnilari2015 said, you should be able to use iTextSharp to open password-protected PDF files:
http://stackoverflow.com/questions/17666577/opening-password-protected-pdf-file-with-itextsharp

There is also another way to handle such files here:
https://support.leadtools.com/SupportPortal/CS/forums/44825/ShowPost.aspx

Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Michaelbr on: 5/24/2016 [Member] Starter | Points: 25

Up
0
Down
You can refer to this article which demonstrates how to decrypt a PDF file and extract images from the pdf file:
http://www.e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Decrypt-PDF-Document-in-C-VB.NET.html


Raj.Trivedi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response