Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficePowerPointBarcode

Aliases: PowerPointBarcode
Module
PSWriteOffice
Aliases
PowerPointBarcode
Inputs
PSWriteOffice.Foundation.PowerPointSlideSelector
Outputs
OfficeIMO.PowerPoint.PowerPointImage

Adds a QR code or barcode to a slide.

Syntax

Add-OfficePowerPointBarcode
[-AlternativeText <String>]
[-BackgroundColor <OfficeColor>]
[-Color <OfficeColor>]
[-ErrorCorrection <L|M|Q|H>]
[-Height <OfficeLength>]
[-NoHumanReadableText]
[-PassThru]
[-QuietZone <Int32>]
[-Slide <PowerPointSlideSelector>]
[-Text] <String>
[-Type <SymbolFormat>]
[-Width <OfficeLength>]
[-X <OfficeLength>]
[-Y <OfficeLength>]
[<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Inside PowerPointSlide without coordinates or a size, the code flows through the slide layout and keeps its proportions. X, Y, Width, Height or Slide place it at a fixed position instead. The code is an SVG picture with a PNG fallback; OfficeIMO's PDF conversion places it at print resolution. The alternative text defaults to the symbology and the encoded text.

Examples

Close a talk with a link to the slides.

PowerPointSlide -Title 'Thank you' {
    PowerPointBarcode 'https://evotec.xyz/talks/officeimo'
}

Pin a small QR code to a corner of an existing slide.

PowerPointBarcode 'https://evotec.xyz' -Slide 3 -X 22cm -Y 15cm -Width 2.5cm -PassThru

Parameters

-AlternativeText String optional
Accessible description; defaults to the symbology and the encoded text.
-BackgroundColor OfficeColor optional
Background and quiet zone color; a literal color.
-Color OfficeColor optional
Color of the bars or dark modules; a literal color such as Black or #1F3864.
-ErrorCorrection QrErrorCorrectionLevel optional
QR error correction level: L, M, Q or H.
Possible values: L, M, Q, H
-Height OfficeLength optional
Height of the whole symbol including human-readable text; numbers mean points.
-NoHumanReadableText SwitchParameter optional
Leave out the human-readable text that linear barcodes print under the bars.
-PassThru SwitchParameter optional
Return the native editable picture.
-QuietZone Int32 optional
Light margin around the symbol, in modules.
-Slide PowerPointSlideSelector optionalpipeline: True (ByValue)
Native slide or a one-based position in the current document; omitted inside PowerPointSlide.
-Text String requiredposition: 0
Text, URL or other data to encode.
-Type SymbolFormat optional
Symbology; QR code by default. Any CodeGlyphX format, such as Code128, Ean, UpcA, DataMatrix or Pdf417.
Possible values: QrCode, MicroQrCode, Aztec, Code128, Gs1Code128, Code39, Code93, Ean, UpcA, UpcE, Itf14, Itf, Industrial2Of5, Matrix2Of5, Iata2Of5, PatchCode, Codabar, Msi, Code11, Plessey, Telepen, Pharmacode, PharmacodeTwoTrack, Code32, Postnet, Planet, RoyalMail4State, AustraliaPost, JapanPost, Gs1DataBarTruncated, Gs1DataBarOmnidirectional, Gs1DataBarStacked, Gs1DataBarExpanded, Gs1DataBarExpandedStacked, UspsIntelligentMail, KixCode, DataMatrix, Pdf417, MicroPdf417, RmQrCode, Gs1DataBarLimited, Gs1DataBarStackedOmnidirectional, MaxiCode, DotCode, HanXin, Gs1Composite, Ean2, Ean5, TelepenNumeric, Coop2Of5, Datalogic2Of5, Bc412, FacingIdentificationMark, Daft, Flattermarken, ChannelCode, Code16K, Code49, CodablockF, PosiCode, Mailmark4State, D3Aqr, AztecRune, CodeOne, Ultracode
-Width OfficeLength optional
Width of the whole symbol including its quiet zone; numbers mean points.
-X OfficeLength optional
Left position; numbers mean points.
-Y OfficeLength optional
Top position; numbers mean points.

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.