# New-HTMLQRCode

Creates an HTML QR code with specified parameters. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteHTML API Reference.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

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>]
```

[#](#method-new-htmlqrcode-object-string-string-object-switchparameter-object-string-string-object)

Parameter set: `All Parameter Sets`

## Description

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

```powershell
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

```powershell
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 optionalposition: 2**

The height of the QR code.

**-Link String optionalposition: 0**

The link or content to be encoded in the QR code.

**-Logo String optionalposition: 5**

The path to the logo image to be embedded in the QR code.

**-LogoHeight Object optionalposition: 7**

The height of the logo image.

**-LogoInline SwitchParameter optional**

Indicates whether the logo should be embedded inline in the QR code.

**-LogoWidth Object optionalposition: 6**

The width of the logo image.

**-Title String optionalposition: 3**

The title or alt text for the QR code.

**-TitleColor String optionalposition: 4**

The color of the title text.

**-Width Object optionalposition: 1**

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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:5B5671D7273A672C31556F17C6AED90BFD7E125791A6C419BA8B9A1616183E31 -->
