Question pdf file

nasnas

New member
Joined
Apr 29, 2009
Messages
3
Programming Experience
5-10
Hi
I made a pdf file with a password. I need to know how to open the pdf file from my program.
the command should include (passing) the password to open the pdf direct.

thanks
 
report

You can open PDF file in your application after adding PDF's dll in your toolbox and drag drop that to form


:):):)
 
thank you shemeer for your reply:
to be more specific, I am using the following to open pdf file

'---------------------
With proc.StartInfo
.Arguments = " C:\New Folder\books\sm.pdf" ' any file
.UseShellExecute = True
.WindowStyle = ProcessWindowStyle.Maximized
.WorkingDirectory = "C:\Program Files\Adobe\Reader 8.0\Acrobat\" '<----- Set Acrobat Install Path
.FileName = "Acrobat.exe" '<----- Set Acrobat Exe Name
End With

proc.Start()
proc.Close()
proc.Dispose()
--------------
and it is working.
what i need is how to include the pdf file password in the upper command, so when the file is open will not ask the password from the user???
 
Adobe PDF

Right click Tool box
select Choose items / add remove items
go to COM Components
select Adobe PDF Reader and click OK
Now two dll files will be added to your reference.
Drag and drop adobe pdf control to form
set src of the form ie, file path
Thatz all..............................
:):):):)
 
Thank you shemeer for yoour reply,

I tried what you mention, it is working with non-password pdf file.
But when i try to open a file with a password, nothing happen.

--------------

also, if i want to use you way, how to go to a certain page.
ie: go to page 10 ---> not to display the begining of the file

thank you again.
 
pdf

You can navigate on PDF file using the following

AxAcroPDF1.gotoNextPage()
AxAcroPDF1.gotoPreviousPage()
AxAcroPDF1.gotoFirstPage()
AxAcroPDF1.gotoLastPage()

For Next and Back use

AxAcroPDF1.goBackwardStack()
AxAcroPDF1.goForwardStack()

:):):):):):):):):)
 
Back
Top