Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hello, I am using PDF component

Status
Not open for further replies.

hong1227

Programmer
Feb 4, 2003
2
CA
hello,

I am using PDF component on Delphi 6. There is a procedure setShowToolbar() to enable or disable the Acrobat entire toolbar. I need part of the toolbar(for example, I want to remove the save button.) Can anybody tell how to do it?

Thanks a lot
 
What kind of component are you using?
I know that in PowerPDF there are some properties that you can turn it ob/off.

You could also manipulate the PDF file script:
Ex.
%PDF-1.2
1 0 obj
<<
/Type /Catalog
/Pages 3 0 R
/PageMode /UseNone
/PageLayout /SinglePage
/ViewerPreferences <<
/HideToolbar true
/HideMenubar true
/FitWindow true
/CenterWindow true
>>
>>
endobj
2 0 obj
<<
/Producer (Info PDF version 1.0)
/Author (Michael Ha)
/CreationDate (D:20020816154037)
/Creator (Info Tjenester As)
/Keywords ()
/Subject ()
/Title (S102-02)
/ModDate (D:20020816154037)
>>
endobj
etc..

This will be hidden in Adobe Acrobat Reader 4.05, full version of Adobe Acrobat 4.0 and earlier versions but not 5.0

Michael
 
I know you can manipulate much more.. and make your own add-ins if you have full version of Adobe Acrobat. Not sure how to do it in Delphi, but I have once join a Acrobat Forum.
But sorry I cant remember the place... because I lost everything a long time ago all my data.. I have learn to take backups! Just surf around in the Internet.

michael
 
Thanks Michael.
I am using Adobe Acrobat files in a Delphi application.
I installed Acrobat Control for ActiveX and got a TPDF component in Delphi. When I drop a Tpdf componet on a form, I can use it to load a .pdf file, and the Acrobat Reader will be brought up automatically. The toolbar is Acrobat Reader's toolbar. On Acrobat Reader, we can selete the toolbar's buttons.(make them visiable or not visiable.) I want to disable some toolbar's buttons from Delphi. So when a .pdf file is loaded, some button (for example, the save button) is not showed on the PDF page.
 
I understand.. I have tried as you said installed Acrobat Control for ActiveX and got a TPDF Component.. but I haven't tried to make the toolbar's buttons to be invisible..

I think that you should first surf around and finding more about Adobe Acrobat. I think they could help you with something...

I would also be interested if you find any solution.. :eek:)

Michael
 
In full version of Adobe Acrobat you could set the document security.. disable some toolsbars button as I remember.. (not sure, but think so)

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top