Command
New-HTMLQRCode
Creates an HTML QR code with specified parameters.
Syntax
New-HTMLQRCode [[-Height] <Object>] [[-Link] <String>] [[-Logo] <String>] [[-LogoHeight] <Object>] [-LogoInline] [[-LogoWidth] <Object>] [[-Title] <String>] [[-TitleColor] <String>] [[-Width] <Object>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
This function generates an HTML QR code based on the provided parameters. It allows customization of the QR code appearance and content.
Examples
EXAMPLE 1
New-HTMLQRCode -Link "https://example.com" -Width 200 -Height 200 -Title "Example QR Code" -TitleColor "black" -Logo "C:\logo.png" -LogoWidth 50 -LogoHeight 50 -LogoInline
Creates a QR code with a specified link, dimensions, title, color, and logo embedded inline.EXAMPLE 2
New-HTMLQRCode -Link "tel:1234567890" -Width 150 -Height 150 -Title "Contact Number" -TitleColor "blue" -Logo "C:\company_logo.png" -LogoWidth 30 -LogoHeight 30
Generates a QR code for a phone number with custom dimensions, title, color, and logo.Parameters
- -Height Object
- The height of the QR code.
- -Link String
- The link or content to be encoded in the QR code.
- -Logo String
- The path to the logo image to be embedded in the QR code.
- -LogoHeight Object
- The height of the logo image.
- -LogoInline SwitchParameter
- Indicates whether the logo should be embedded inline in the QR code.
- -LogoWidth Object
- The width of the logo image.
- -Title String
- The title or alt text for the QR code.
- -TitleColor String
- The color of the title text.
- -Width Object
- The width of the QR code.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.