| | |
Opening PDF file in VB6 Form
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
•
•
Hi,
How can i open a PDF file in Form instead of using a shell to open it?
Also i want to select some text in the opened PDF file and store it in a variable.
Thank you.
http://www.adobe.com/devnet/acrobat/...JavaScript.pdf
www.adobe.com/devnet/acrobat/pdfs/AcroJS.pdf
Last edited by SlyMaelstrom; Mar 6th, 2009 at 5:22 pm.
•
•
•
•
Probably the easiest way to do what you want is to use a Browser control on your form and open the PDF file in the browser - Browser1.Navigate PDFFile$ - works like a charm and you're not tied to a particular version of Acrobat Reader.
To the OP, another point I forgot to make. Text in a PDF might not be text at all. It can also be an image, while Adobe Professional does have OCR recognition, it is not made available by them in their API. You can however extract the image and use an OCR that Office gives you in their library references. I forgot the name of it, but it should be easy enough to Google.
•
•
•
•
Probably the easiest way to do what you want is to use a Browser control on your form and open the PDF file in the browser - Browser1.Navigate PDFFile$ - works like a charm and you're not tied to a particular version of Acrobat Reader.
But still im not able to put it in a variable or access the text via code.
You know how to do that?
Last edited by RahulV; Mar 8th, 2009 at 8:57 am.
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: help
- Next Thread: Total control in one form.....
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





