Skip to content

PDF Blocks

PDF blocks embed PDF documents directly in pages for inline viewing without requiring downloads.

Syntax

[pdf](https://example.com/document.pdf)
[pdf](https://example.com/manual.pdf "Installation Manual")

Basic Usage

Documentation

## User Manual

[pdf](https://docs.example.com/user-manual.pdf "Complete User Manual")

## API Reference

[pdf](https://api.example.com/reference.pdf "API Documentation")

Reports

## Monthly Analytics

[pdf](https://reports.example.com/analytics-march.pdf "March 2024 Report")

## Financial Summary

[pdf](https://finance.example.com/q1-summary.pdf "Q1 Financial Report")

Programmatic Usage

from notionary import MarkdownBuilder

builder = (MarkdownBuilder()
    .h1("Documentation Library")
    .pdf("https://docs.example.com/user-manual.pdf", "Complete User Manual")
    .pdf("https://api.example.com/reference.pdf", "API Documentation")
    .pdf("https://reports.example.com/analytics.pdf", "Monthly Analytics Report")
)

print(builder.build())
  • File - For downloadable PDF files
  • Image - For PDF page screenshots
  • Embed - For other document types
  • Bookmark - For PDF preview links