Adobe PDF printer - Programmatic Control

Hi,
I have an MS Access 2007 application that has been using an Adobe printer to create PDF files.  It's been working for several years on XP machines but since the PC's where upgraded to Windows 7 64 bit and MS Office 2010 32 bit it has stopped working.
The version of acrobat and distiller is 9.  I used the registry change to specify the filename I was creating as described in the Distiller9APIReference guide http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/Distiller9APIReference.pdf page 15/16
ie:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl]
"C:\Program Files\Windows NT\Accessories\wordpad.exe" =
"c:\MyPDFoutputFileName.pdf"
Originally I could specify the PDF file to create and then wait for it to be created before moving the file onto the server.  Now even though the registry appears to be amended as before the user is now being prompted for a file name.
I printed to the Adobe PDF via word and notepad and they appear in the same registry, so I've assumed its not a 32 bit/64 bit registry issue.
Sadly I wasn't responsible for the previous or current installation of the adobe products so have no idea what might be different between then.  The printer name did change from Adobe to Adobe PDF if that makes any difference however I have changed the code to call the new printer.
Any help on how to track down the issue would be most helpful.
Nathan

The solution was with the registry after all.
For those who may encounter a similar issue look at http://stackoverflow.com/questions/2075104/bypass-adobe-pdf-printer-savefileas-prompt

Similar Messages

  • How to control "Adobe PDF" Printer?

    Hello Everyone,
         We have a designed a large crystal report containing around 270 pages with lots of high quality images related to properties available for sale. When we try to export this report to PDF after exporting 20-50 pages (depending on the system resources available) it fails with a out of memory error ( occurs with all PDF printers like PDFCreator, Adobe PDF, etc). This error is due to a limitation of crystal reports to handle a large number of images.
         As a workaround, I tried exporting the pages of a crystal report 1 after another into a temp folder and then merged them together. I could easily do this with PDFCreator. But our client has purchased a ADOBE Acrobat X Pro edition and insists on using the same. By default he has the "Adobe PDF" printer default settings (Adobe PDF->Adobe PDF Settings Tab -> Default Settings combo) set to "Standard" print quality.
         Since I will be printing the crystal report page by page. I provide the user a custom print dialog (c#) to accept the settings he desires. When the client selects the "High Quality Print" job option, I would like to print all 270 pages one after another into a specified folder and then merge them together and provide him a save dialog to move the file to the location he desires. I would then like to revert the "Adobe PDF Printer" back to its old settings.
        Is there any way to achieve this? I have been looking at the ADOBE registry keys using process monitor but somehow it seems that the settings are just getting saved here. Changing the registry keys does not reflect in "Adobe PDF" when I go to the printing preferences.
         Any help will be truly appreciated
    From,
    Patrick.

    Thank you for your suggestions.
    @TestScreenName : Yes, I have downloaded the Adobe SDK Library
    @Irosenth : Only specific users have permissions to print these large reports and they will do it on their local machines wherein they each have a full version of Adobe Acrobat. I had seen the silent printing option and understand it. I am more concerned however with the following as seen in my original post
    "  Since I will be printing the crystal report page by page. I provide the user a custom print dialog (c#) to accept the settings he desires. When the client selects the "High Quality Print" job option"
    My question here is if the user selects any print settings in the custom dialog where (registry?) & how do I set it so that the Adobe PDF printer  detects the option selected. Is there any API provided  for the same? After printing all the pages I will have to reverts the settings of the printer.

  • Adobe PDF Printer not working as print driver; 9.5.5 (pro) with Windows 7, 64 bit

    I have installed, repaired, uninstalled and re-installed Acrobat Pro 9.5.5 on a newly formatted SSD with Windows 7, 64 bit on my desktop machine. The program was installed from Acrobat Pro 9.0.0 and updated within the program. I have the program also installed on my laptop, and the Adobe PDF Printer driver is working properly on my laptop.
    On my desktop with the newly formatted SSD, the Adobe PDF printer driver is not working. Note that I am using the printer driver, and not any pdf creation techniques within MS Office or other programs.
    When I go to the Adobe PDF printing preferences on my desktop, I only get a generic, two tab window open. When I print a file to this printer on my desktop machine, I do not get a window opening that asks where to create the pdf or what to name it, and I never see any files created. In MS Word, the Create PDF option under the Acrobat tab works and opens a dialog to ask the name and location to save, and then opens a PDF Maker progress window and properly creates the file. I can also save a file as an .eps or .ps file and use Distiller to create the pdf. However I cannot get the Adobe PDF printer driver in my Devices and Printers to work properly, although it works just fine on my laptop with the same program (Pro 9.5.5) and same Windows version (7, 64 bit).
    Repairing, uninstalling and re-installing does not solve the problem. Acrotray.exe *32 process is running. Any ideas on why this won't run properly on my desktop, but will run on a similarly configured laptop?
    On my laptop, I get a full, (7) tabl menu with all the normal options:

    I found this answer from Deepak Chauhan on another forum, and it solved this problem!
    Try this to add Adobe PDF printer manually on Windows 7, and Windows Vista.
    If windows 7 is Enterprise or better edition: (Admin rights required)
    Start>search for printmanagement.msc and open the print management module
    Expand the print server and expand the computer name to see availbale printers, drivers and printer ports.
    - from printers ensure there's no Adobe PDF printer, if there is delete it
    - go to ports and delete the PDF ports (the ones ending in *.pdf)
    - go to drivers and delete the PDF converter.
    Take note if any errors occur, but continue with the following steps regardless.
    If on windows 7 home edition, just goto start>Devices and Printers and ensure PDF pritner is not listed.
    Then open the registry (if any erors deleting these keys happen, see below)
    1: go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers
    delete any adobe PDF printer subkey present
    2: go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors
    delee the PDF port monitor if present
    3: go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers
    again delete and pdf printer subkey
    If any erros occur, you need to set the owner of the key to the currently logged in admin user, then ensure that user has full control.
    Do this by right-click the key and selecting permissions, clicking on advanced, then the owner tab.
    Once you've all that has been done, open a command line as administrator.
    Copy and pate the following commands in order
    1: net stop spooler
    2: rundll32.exe setupapi.dll,InstallHinfSection AdobePDFPortMonitor 128 C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf
    3: net start spooler
    4:rundll32.exe printui.dll,PrintUIEntry /if /b "Adobe PDF" /f "C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf" /r "Documents\*.pdf" /m "Adobe PDF Converter"
    That should set back the pdf printer.
    This seemed to provide the link that provided the Adobe PDF Settings tab to the Adobe PDF Printing Preferences that was missing!

  • How can i prevent modifing the  itemes in Adobe PDF Printer Setting?

    Hi,
    I have installed an Adobe Acrobat X Pro 10.1.0 in windows xp.In print dialog,push the Property button,it will appear a dialog of Adobe PDF Setting,one of the setting itemes is "View the Adobe PDF Results",it can be set to view or not view the new created PDF file. I want hold the default setting and prevent modifing it,How can i do? can it be realized by javascript program?Thanks a lot!

    Hi,Test Screen Name
    Because HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Ad obe PDF\ is the dir where to set the property of Adobe PDF printer when windows load it , this is experience, no documentation(or i don't find) , perhaps there will be other registry itemes which does not list in that dir ,but i don't know , that is why i think it just like what you have said ' It looks very like a "discovery" rather than a policy ' . For this reason , i want to realize it by adobe acrobat SDK programming ,but now  the second way is impossible. Thank you again !

  • Adobe PDF Printer (Acrobat Pro 9.3.2) causes Print Spooler crash on Windows 7 64-bit

    We have recently upgraded our office to Windows 7 64-bit. This upgrade has been very smooth with the exception of Adobe Acrobat 9 Pro. We are running Acrobat 9.3.2, I know there are a couple of additional updates available but they do not fix this issue if installed.
    The problem occurs when users create documents using the Adobe PDF printer. The Print Spooler will crash, causing the application they are printing from to stop responding and they are forced to close the program. From this point onwards the user will be unable to print to any printer whatsoever, until they restart their computer. Stopping and starting the print spooler (clearing temp files as well) sometimes corrects the issue, but by the time they have found an admin to do this they may as well just restart.
    I should note that this problem is not very consistent. It occurs sometimes after one PDF has been created, sometimes after they have created many PDFs, and sometimes not at all. It doesn't seem to matter which application they create the PDF from either. It's very irritating because I can't pin it down to anything in particular.
    I've Googled a lot around this subject and I can see that I am not the only one with this issue, however there don't seem to be any solutions out there. This issue is widespread across our organisation and I would greatly appreciate any constructive suggestions on finding a resolution.
    Many thanks, Steve.

    Several months ago, I started working on this issue and thought that I had it resolved by uninstalling the "Internet Printing Client" from "Windows Features" (Start > Control Panel > Programs and Features > Turn Windows features on or off > expand Print and Document Services > uncheck Internet Printing Client). This change seemed to help at the time, as I was then unable to reproduce the issue and the end-user was unable to reproduce the issue for two weeks after (thus I closed the help desk case). But now it looks like the issue is back. Maybe the above setting will help someone else, but I'm now looking for a permanent fix.
    PS: I have instructed our users on the "Save as PDF" option provided in Office 2010, but I don't think that is used all the time, and the PDF printer is there only option in other applications (IE for example).
    Anybody had this issue and found a fix?
    Thanks,
    Justin

  • Adobe PDF Printer not showing -- no fix found yet

    The Adobe PDF printer is no longer showing on a system in the office. It's running Windows 7 Professional x64. The Adobe Acrobat version is Pro X.
    I have tried litereally everything I could find here in the forums and elsewhere, including uninstall, clean-up (using the Adobe tool), reinstall, maually printer install attempts (failed), manual removal of all printer ports relating to Adobe PDF documents etc. Nothing worked.
    Adobe Acrobat itself is working perfectly fine, but the PDF printer is not showing anywhere, or working. I had to install an alternative for now (PDF Creator), but obviously that's not an acceptable solution. The issue started, I believe, after some tax software package was installed that had its own PDF printer. The software has since been removed, and all troubleshooting has taken place after.
    System restore is also no option, since it doesn't go as far back.
    If anyone has any further suggestions, it would be very much appreciated. I am an IT professional, I'm comfortable with registry rediting or similar if that is what it takes, I'd just like to find a fix, and so far I've exhausted everything I could find (including Experts Exchange).

    Try this process.  If you get any errors then screenshot them and post them back to the forum.
    Try this to add Adobe PDF printer manually on Windows 7.
    If windows 7 is Enterprise or better edition: (Admin rights required)
    Start>search for printmanagement.msc and open the print management module
    Expand the print server and expand the computer name to see availbale printers, drivers and printer ports.
    - from printers ensure there's no Adobe PDF printer, if there is delete it
    - go to ports and delete the PDF ports (the ones ending in *.pdf)
    - go to drivers and delete the PDF converter.
    Take note if any errors occur, but continue with the following steps regardless.
    If on windows 7 home edition, just goto start>Devices and Printers and ensure PDF pritner is not listed.
    Then open the registry (if any erors deleting these keys happen, see below)
    1: go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers
    delete any adobe PDF printer subkey present
    2: go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Monitors
    delete the PDF port monitor if present
    3: go to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers
    again delete and pdf printer subkey
    If any erros occur, you need to set the owner of the key to the currently logged in admin user, then ensure that user has full control.
    Do this by right-click the key and selecting permissions, clicking on advanced, then the owner tab.
    Once all that has been done, open a command line as administrator.
    Copy and paste the following commands in order
    1: net stop spooler
    2: rundll32.exe setupapi.dll,InstallHinfSection AdobePDFPortMonitor 128 C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf
    3: net start spooler
    4:rundll32.exe printui.dll,PrintUIEntry /if /b "Adobe PDF" /f "C:\Program Files (x86)\Adobe\Acrobat 10.0\Acrobat\Xtras\AdobePDF\AdobePDF.inf" /r "Documents\*.pdf" /m "Adobe PDF Converter"
    That should set back the pdf printer.

  • How can I change the default page size for the Adobe PDF Printer?

    Hello All,
    I have cases where I need to switch the default paper size from 8.5x11 to 11x17 via api for the Adobe PDF Printer and have not been able to find how this can be accomplished.
    I am using C# .Net and would appreciate any help.
    Thanks in advance,
    Bob

    There is no Acrobat API for this, but so far as I know there doesn't need to be. The user can go change this from the Printers Control panel as needed. The Adobe PDF printer has some differences from regular printer drivers, but this isn't one of them.

  • Adobe PDF Printer missing after update

    Yesterday I updated my Adobe Acrobat 9 software to version 9.5.3 but now my Adobe PDF printer has disappeared. I am running Windows 7 Professional 32 bits. I have many documents to convert into PDFs but now I am unable to since the update installed. Please help?

    Try repairing Acrobat installation - Open control panel, select Acrobat and chose the option to repair.

  • Problem printing files to Adobe PDF printer using VBA

    I have an Excel project. Part of the code prints the active sheet range as a PDF file. Later code then sends the PDF file as an e-mail attachment. The Code was originally written using the free application PDFCreator and works as intended. However the client wants to use the Acrobat "Adobe PDF" printer instead.
    Each PDF must have a name as specified in the code and must be sent to a specified folder, again as specified in the code.
    The Adobe PDF printer insists on 1) using the path specified in the printer preferences and 2) naming it as the workbook name + .pdf.
    I have checked the Distiller API reference and it tells me that if a key is set, the output path and name can be controlled. However, setting the key as described does not work. The PDF printer ignores it and creates another key named as the output file with a REG_SZ value that is numeric and increments each time print is invoked.
    Attached is a screen shot of the registry entries.
    What am I doing wrong?

    I have.
    However, I think I have solved this.
    First, I am using Win 7 64 bit, so the application is not excel but c:\windows\splwow64.exe. I've modified my code so that both XP 32 and Win7 64 are catered for.
    Second, the print command I used in VBA was
    ActiveSheet.Printout ActivePrinter:= "Adobe PDF"
    It looks like that starts a different Adobe DF printer to the one that would look at the registry. If I change the code to
    ActiveSheet.Printout
    and set Adobe PDF as the default printer in control panel, the whole thing works as planned.
    All I need to do now is to set the printer to Adobe PDF within the code so the user doesn't have to do this in Control Panel. Obviously, my approach above didn't work, so what is the way to do this?
    Here's the sub routine as it stands at the moment:
    Public Sub PrintUsingAcrobat()
        Dim strOutFile As String
        Dim PDFPath As String
        Dim FileName As String
        Dim XPApplic As String
        Dim X64Applic As String
        XPApplic = Application.Path & "\excel.exe"
        X64Applic = "C:\Windows\splwow64.exe"
        Const HKEY_LOCAL_MACHINE As Long = &H80000002
        Const HKEY_CURRENT_USER As Long = &H80000001
        Dim lRC
        Dim sPath
        Dim objRegistry
        PDFPath = outpath ' outpath is a global variable set elsewhere
        strOutFile = Range("Suppliername") & ".pdf"
        FileName = PDFPath & strOutFile
        Set objRegistry = GetObject("winmgmts://./root/default:StdRegProv")
        sPath = "SOFTWARE\Adobe\Acrobat Distiller\PrinterJobControl"
        lRC = objRegistry.SetStringValue(HKEY_CURRENT_USER, sPath, XPApplic, FileName)
        lRC = objRegistry.SetStringValue(HKEY_CURRENT_USER, sPath, X64Applic, FileName)
        ActiveSheet.PrintOut
        DoEvents
    End Sub

  • Automated printing to Adobe PDF printer driver

    Hi,
    my application is hosting a 3rd party control that also offers some printing functionality to the default printer driver. However, it does not support PDF export yet. Thus, I would like to implement PDF export using the Adobe PDF printer driver. This export should happen silently and should not force the user to interact with the pdf printer driver. The PDF needs to be stored on a predefined folder using a predefined file name.
    My question is: How can I use the Adobe PDF printer driver from my own application as a custom printer driver?
    I would like to have a workflow like the following:
    1. User presses "export PDF".
    2. The application does:
        - store the current default printer
        - set the default printer to the Adobe PDF printer driver
        - trigger the 3rd party control print mehtod (prints to the default printer)
        - wait until the print job has ended
        - collect the printed PDF from the predefined folder / filename for further processing
        - reset the default printer to the previous default
    Ideally I would like to have some progress information during printing.
    Is this possible using the Adobe Acrobat SDK? If yes, how? A first glance at the documentation did not reveal how to steer the Adobe PDF printer driver from an own application (COM?).
    Thank you,
    Max

    Thanks for your hint. I've found the example AdobePDFSilent in the SDK which nearly does what I am intending to do. However, one thing remains open:
    How can I get progress information about the corresponding print job from the destiller. Ideally I'd like to have an event after each page + one event after the file has beens successfully saved.
    Is this information exposed by the destiller API?
    Regards,
    Max

  • Disable the save PDF as dialog - Adobe PDF printer / Adobe Distiller

    How do i disable "save PDF as" dialog while printing the word document through Adobe PDF Printer/Distiller programmatically?

    See the Distiller API document.
    Aandi Inston

  • How to make "Adobe PDF" printer quiet  (no banner) when called from MSAccess?

    I have an Access Database which creates reports set up to print to the "Adobe PDF" printer (Acrobat Standard 7.0.7). Everything works great except the pop-up progress window appears during printing and takes over windows control briefly, then when printing finishes, it closes and gives back control to the other window. This makes running large batch .pdf creating operations very intrusive.
    How do I make it not display the banner/progress pop-up during printing?
    Thanks,
    Tim James

    Thanks very much for the information, I was not aware of LiveCycle PDF Generator.
    Looking (briefly so far) into the available info it states:
    "Import, export, and manipulate attachments, annotations, links, and bookmarks in an XML format"
    This sounds like my unrelated goal of implementing something that can take an existing .pdf and a ist of phrase-hyperlink pairs and add links to the given hyperlink to every occurrence of the given phrase would be much better implemented using LiveCycle PDF Generator rather than Acrobat.

  • Adobe PDF Printer Missing Fix - Adobe Acrobat 8.1 - Vista

    Adobe PDF Printer Missing Fix - Adobe Acrobat 8.1 - Vista
    1. Type "C:\Windows\inf" into the search box on the start menu.
    2. Locate the INFCACHE.1 file and right-click it and select Properties.
    3. On the INFCACHE.1 Properties window tab to the "Security" tab and click the "Edit" button to change permissions on this file.
    4. On the Permissions for INFCACHE.1 window click the "Add" button.
    5. On the Select Users or Groups window click the "Advanced" button.
    6. A new Select Users or Groups window will open and then click the "Find Now" button.
    7. The search results are sorted alphabetically; locate the username you logon to Windows with and then double-click.
    8. Under the "Enter the objects names to select..." you should see something like this YOURCOMPUTERNAME\Yourusername
    9. Now click the OK button.
    10. You will now return to the Permissions for INFCACHE.1 window.
    11. Under the Permissions for Yourusername you need to tick "Full Control" under the Allow column. Click the "Apply" button and then the "OK" button.
    12. You will be prompted with a "Windows Security" window, just click the "Yes" button and continue.
    13. Delete the INFCACHE.1 file.
    14. Restart your computer.
    15. Open Adobe Acrobat 8.1
    16. Locate the Help menu item and click Repair Acrobat Installation
    17. Restart if requested to do so.
    This fix worked on Windows Vista Business Edition (32-Bit).

    I have windows XP media center. I uninstalled Acrobat 8 to download Acr 9 pro extended. No adobe printer was installed .
    Tried the steps given here by Steve Lionel. I was able to add the "Adobe PDF Converter" as printer. Although after the 7th step in Steve's fix, the wizard asked me to search for some files (from XP CDrom) which I was able to locate in the Windows folder-drivers folder and the system32-spool folder.
    I went to acrobat,opened a pdf file and tried to print with this printer and saved it on the desktop. A file appears, but adobe cannot open it however it activates adobe illustrator and opens in that program.
    Lots of time has gone. No solution yet.
    Appreciate any suggestions.
    Thanks
    Update!!!
    I tried printing on this printer from a webpage and it converted the webpage like charm.
    I am more than happy even if I get to use this printer to convert webpages to pdf as now I don't have to install those shady pdf converters and printer drivers.
    This is good as the fix given here works even for XP.
    Thanks for this wonderful solution.

  • Adobe PDF printer and "Start printing after last page is spooled"

    Hi,
    After calling the Belgian Support for Adobe Product, I'm trying to have some information here.
    Hope to get some help.
    We use acrobat pro XI on windows 7 client and when we print a test page with the "adobe pdf" print queue on network share, we get a printing error when the "start printing after last page is spooled" is selected in the advanced tab of the printer queue. (document is not generated, and stay in the spooler with an error).
    This problem is not present if printed localy or when we use the "start printing immediately" or "print directly to the printer".
    The support agent from adobe Belgium told me that the reason is generating adobe pdf on network share is not a supported operation. We have to save the document localy all the time.
    Is it really an answer from Adobe ?
    Do you have an other explanation ?
    Thanks for your help,

    Thanks for your very good explanation Dov.
    We use Adobe livecycle for this kind of purpose.
    The situation described is diffrent, but you completely repond and I will be able to have some element to find a solution.
    In fact, I'm implementing a softwate called DeviceLock, used to control connected devices (usb, network, drive). But this software, once installed, change the local printer parameters from "print directly to the printer" to ""start printing after last page is spooled".
    As we use redirected folder in our environment and users cannot use local drive (for user's data backup) you will understand the problem.
    Of course, we should be able to force the correct settings back, But Devicelock seem to change this settings after policy refresh.
    I have contact with Devicelock about this problem of course as their software modify the settings, but was looking for a reason why we were not able to use the "start printing after last page is spooled" parameters with adobe Printer.
    Thanks for your explanation,
    PS:The driver's dialog won't prevent you from setting “Start printing after last page is spooled” or “Print directly to the printer” but setting either of those options will cause the operations to fail as you note.
    note that only "Start printing after last page is spooled" cause an error and this, only for network share location. The "print directly to the printer" or the "start printing immediately" work fine either on a local drive and a network share

  • Adobe PDF printer--multiple dialogs for the same settings

    Please excuse if this question is painfully obvious, but I just can’t figure it out.
    I’m working with FrameMaker version 8.0p277 (TCS).
    As far as I can tell there are at least three places where I can setup preferences for my PDFs
    From the Control Panel, I can right-click on the Adobe PDF printer and set two different joboptions depending on which menu item I choose (Printing Preferences or Properties/Advanced Tab).
    However, when I want to create a PDF from my FrameMaker book or document, I use File>Print to open the Print dialog. When I choose the AdobePDF printer, clicking the Properties button opens the Adobe PDF Document Properties dialog. From the dialog’s Adobe PDF Settings tab I can choose from any of the joboptions in my Settings directory.
    At the same time, I can select the Generate Acrobat Data option, click the PDF Setup button, and choose a completely different joboption from the Settings tab in the PDF Setup dialog.
    Can someone please explain the difference between these options? And just which one gets priority if I print directly from FrameMaker to the Adobe PDF printer? (I assume if I print to file (.ps) the options I set in the Distiller get priority.)
    Thanks!
    Wendy

    Hi Wendy,
    When you set the Preferences for the AdobePDF from the Control Panel via the Printers, these are then default system-wide settings for all applications in the absence of any other information.
    From within FM, the Properties setting, when you select the Adobe PDF printer instance, takes you to the same Preferences dialogue as in the first condition. You're temporarily resetting the preferences for the FM session to use. However, this does not change your default preferences set at the system level nor does it affect any other application that is running.
    The Generate Acrobat Data PDF Setup option is the last one in the chain and this provides the chance to specify an override for the session settings. This one has the highest priority.

Maybe you are looking for