Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi AcroPDF - How can i hide navigation panel buttons (https://www.delphipraxis.net/143748-acropdf-how-can-i-hide-navigation-panel-buttons.html)

haidomingo 22. Nov 2009 16:23


AcroPDF - How can i hide navigation panel buttons
 
How can i hide navigation panel buttons?
Is there a solution to Delphi for the problem described here?
see http://forums.adobe.com/thread/301715

Thanks

Bernhard Geyer 22. Nov 2009 19:44

Re: AcroPDF - How can i hide navigation panel buttons
 
Which solution? AFAIK this can only be done by embedded Javascript in PDF. No external API available for doing this.

haidomingo 23. Nov 2009 07:29

Re: AcroPDF - How can i hide navigation panel buttons
 
Zitat:

Zitat von Bernhard Geyer
Which solution? AFAIK this can only be done by embedded Javascript in PDF. No external API available for doing this.


Delphi-Quellcode:
procedure HideAcrobatLeftPanel;
begin
  with TRegistry.Create do
    try
      RootKey := HKEY_CURRENT_USER;
      if not KeyExists('\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cDockables') then begin
         CreateKey('\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cDockables');
         CloseKey;
      end;
      if OpenKey('\Software\Adobe\Acrobat Reader\9.0\AVGeneral\cDockables', False) then begin
         WriteInteger('bExternalTabs',0);
         CloseKey;
      end;
    finally
      Free;
    end;
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:00 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz