Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-HTMLQRCode

Namespace PSWriteHTML

Creates an HTML QR code with specified parameters.

Remarks

This function generates an HTML QR code based on the provided parameters. It allows customization of the QR code appearance and content.

Examples

Authored help example

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.
        

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.

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 Sets

Parameters

Height Object optionalposition: 2pipeline: False
The height of the QR code.
Link String optionalposition: 0pipeline: False
The link or content to be encoded in the QR code.
Logo String optionalposition: 5pipeline: False
The path to the logo image to be embedded in the QR code.
LogoHeight Object optionalposition: 7pipeline: False
The height of the logo image.
LogoInline SwitchParameter optionalposition: namedpipeline: False
Indicates whether the logo should be embedded inline in the QR code.
LogoWidth Object optionalposition: 6pipeline: False
The width of the logo image.
Title String optionalposition: 3pipeline: False
The title or alt text for the QR code.
TitleColor String optionalposition: 4pipeline: False
The color of the title text.
Width Object optionalposition: 1pipeline: False
The width of the QR code.