New NotionPdfBlock - fasteiner/Notion GitHub Wiki

New-NotionPdfBlock

SYNOPSIS

Creates a new Notion PDF block.

SYNTAX

InputObjectSet (Default)

New-NotionPdfBlock -InputObject <Object> [<CommonParameters>]

CaptionSet

New-NotionPdfBlock -caption <Object> -url <String> [<CommonParameters>]

DESCRIPTION

The New-NotionPdfBlock function creates a new instance of a Notion PDF block. Users can either provide an InputObject or specify the caption, name, and URL to create the block.

EXAMPLES

EXAMPLE 1

$pdfBlock = New-NotionPdfBlock -InputObject $fileObject

Creates a new Notion PDF block using the specified file object.

EXAMPLE 2

$pdfBlock = New-NotionPdfBlock -caption "My PDF" -url "https://example.com/example.pdf"

Creates a new Notion PDF block using the specified caption and URL.

PARAMETERS

-caption

The caption for the PDF block.

Type: Object
Parameter Sets: CaptionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-InputObject

The file object to be used for creating the PDF block. This should be an object that can be converted into a notion_PDF_block using the ConvertFromObject method.

Type: Object
Parameter Sets: InputObjectSet
Aliases: File

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-url

The URL of the PDF file.

Type: String
Parameter Sets: CaptionSet
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

[notion_PDF_block]

Returns an instance of the notion_PDF_block class.

NOTES

This function requires the notion_PDF_block class to be defined in the project.

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️