Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printer resource should have the ability to set a default paper size #9674

Open
kmf opened this issue Apr 16, 2020 · 0 comments
Open

printer resource should have the ability to set a default paper size #9674

kmf opened this issue Apr 16, 2020 · 0 comments
Labels
Focus: Resources Platform: Windows Triage: Feature Request Indicates an issue requesting new functionality.

Comments

@kmf
Copy link

kmf commented Apr 16, 2020

Platform Details

Windows 10

Scenario:

would like the ability to set a default paper size when I configure a printer
some thing like

windows_printer 'Magic Printer' do
  driver_name 'HP LaserJet 500 color MFP M570 PCL6 Class Driver'
  location 'Basement'
  ipv4_address '10.0.0.10'
  papersize 'A4'
end

Current work around is in PowerShell

windows_printer 'MagicPrinter' do
  driver_name 'HP LaserJet 500 color MFP M570 PCL6 Class Driver'
  location 'Basement'
  ipv4_address '10.0.0.10'
  action :create
  notifies :run, 'powershell_script[Set_Papersize_MagicPrinter_to_A4]'  
end
powershell_script 'Set_Papersize_MagicPrinter_to_A4' do
  code <<-EOH
  Set-PrintConfiguration -PaperSize A4 -PrinterName MagicPrinter
  EOH
end
@kmf kmf added the Status: Untriaged An issue that has yet to be triaged. label Apr 16, 2020
@tas50 tas50 added Platform: Windows Type: Enhancement Adds new functionality. and removed Status: Untriaged An issue that has yet to be triaged. labels Apr 20, 2020
@tas50 tas50 changed the title Feature Request: printer resource should have the ability to set a default paper size printer resource should have the ability to set a default paper size May 5, 2021
@tas50 tas50 added Triage: Feature Request Indicates an issue requesting new functionality. Focus: Resources and removed Type: Enhancement Adds new functionality. labels May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Focus: Resources Platform: Windows Triage: Feature Request Indicates an issue requesting new functionality.
Projects
None yet
Development

No branches or pull requests

2 participants