New NotionPdfBlock - fasteiner/Notion GitHub Wiki
Creates a new Notion PDF block.
New-NotionPdfBlock -InputObject <Object> [<CommonParameters>]
New-NotionPdfBlock -caption <Object> -url <String> [<CommonParameters>]
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.
$pdfBlock = New-NotionPdfBlock -InputObject $fileObject
Creates a new Notion PDF block using the specified file object.
$pdfBlock = New-NotionPdfBlock -caption "My PDF" -url "https://example.com/example.pdf"
Creates a new Notion PDF block using the specified caption and URL.
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
This function requires the notion_PDF_block class to be defined in the project.