Einzelnen Beitrag anzeigen

haidomingo

Registriert seit: 23. Jul 2009
23 Beiträge
 
#3

Re: AcroPDF - How can i hide navigation panel buttons

  Alt 23. Nov 2009, 08:29
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;
  Mit Zitat antworten Zitat