Results 1 to 7 of 7

Thread: view pdf fullscreen in .net

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Resolved view pdf fullscreen in .net

    Does anyone know how to view a pdf file in fullscreen, without any menu (pages, etc information) on the left side of the pdf.ocx. Maybe how to read a pdf into a picturebox. I know how to remove the toolbar etc.
    Last edited by jbhansen; Feb 16th, 2005 at 04:46 PM.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: view pdf fullscreen in .net

    Welcome to the Forums.

    You can use a javascript file to enable/disable/add/remove menus and toolbars. Then when you start
    a process on Acrobat with your document as an argument you will get the results you want or close to it.
    Only drawback is that if the user installs Acrobat Reader to a different location you will need to find it.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Re: view pdf fullscreen in .net

    Thanks, I am a newbie. Could you give me an excample of the process to remove the left toolbar.

    As mentioned I know how to remove the toolbar.

    AxAcroPDF1.setShowToolbar(False)

    Thanks in advance.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Re: view pdf fullscreen in .net

    Thanks, I am a newbie. Could you give me an excample of the process to remove the left toolbar.

    As mentioned I know how to remove the toolbar.

    AxAcroPDF1.setShowToolbar(False)

    Thanks in advance


    Quote Originally Posted by RobDog888
    Welcome to the Forums.

    You can use a javascript file to enable/disable/add/remove menus and toolbars. Then when you start
    a process on Acrobat with your document as an argument you will get the results you want or close to it.
    Only drawback is that if the user installs Acrobat Reader to a different location you will need to find it.

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: view pdf fullscreen in .net

    Dont forget the drawback that to re-enable/show them you need to restart Acrobat with either
    the code commented or remove the js file.

    Code:
    disclosed = true;
    
    var sPlatform = app.viewerVariation;
    var sLogin = identity.loginName;
    var sPos = "5";
    
    if (sPlatform == "Reader") {
      sPos = "5";
    }
    
    if (sPlatform == "Fill-In") {
      sPos = "5";
    }
    
    if (sPlatform == "Full") {
      sPos = "7";
    }
    
    //HIDE MENU ITEMS
      app.hideMenuItem("Save");
    
    //HIDE TOOLBARBUTTONS
      app.hideToolbarButton("Save");
    
    //DETERMINE THE USER LEVEL OF CONTROL
      var sTemp = sLogin.toUpperCase();
      switch (sTemp) {
        case 'ROBDOG888' :
          app.alert('Full Control Allowed To User: ' + sTemp,3,0);
        default :
          app.alert('Controlled Access Only!',3,0);
      }
    The js file must go in the directory -
    ?:\Program Files\Adobe\Acrobat x.0\Reader\Javascripts\

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Feb 2005
    Posts
    20

    Re: view pdf fullscreen in .net

    Thanks a lot, it worked great.

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: view pdf fullscreen in .net

    No prob. Glad to help.
    Actually that took me some time to figure out back when I did some development with Acrobat.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width