For PDF files that have both landscape and portrait pages, print each in its own orientation.
Pour les fichiers PDF présentant des pages en paysage et en portrait, imprimez chacune des pages dans leur propre orientation.
Explanation
With this policy, you can print PDF files based on per page orientation in Microsoft Edge.
If enabled, mixed mode printing is allowed.
If disabled, mixed mode printing is not allowed.
Grâce à cette stratégie, vous pouvez imprimer des fichiers PDF en fonction de l’orientation de page dans Microsoft Edge.
Si cette option est activée, l’impression en mode mixte est autorisée.
Si cette option est désactivée, l’impression en mode mixte n’est pas autorisée.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\MicrosoftEdge\MainHKEY_CURRENT_USER\Software\Policies\Microsoft\MicrosoftEdge\Main- Value name
AllowMixedModePrintingInPDF
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: MicrosoftEdge/AllowMixedModePrintingInPdf
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowMixedModePrintingInPDF' -Value 1 -Type DWordDisable
# Disable: MicrosoftEdge/AllowMixedModePrintingInPdf
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'AllowMixedModePrintingInPDF' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": MicrosoftEdge/AllowMixedModePrintingInPdf
$k = 'HKLM:\Software\Policies\Microsoft\MicrosoftEdge\Main'
Remove-ItemProperty -Path $k -Name 'AllowMixedModePrintingInPDF' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"