import { Book02Icon, CpuIcon, FileImportIcon, Image02Icon, Search01Icon, TaskEdit01Icon, } from '@hugeicons/core-free-icons'; import { HugeiconsIcon } from '@hugeicons/react'; import Image from 'next/image'; import Link from 'next/link'; import type { ReactNode } from 'react'; import { Eyebrow } from '@/components/site/eyebrow'; import { AngularIcon, ArrowRightIcon, ExtLinkIcon, JsMark, ReactIcon, SvelteIcon, VueIcon, } from '@/components/site/icons'; import { DOCS_INTEGRATION_LABELS, docsEntryHref, type DocsIntegration, type HeadlessIntegration, } from '@/lib/docs-integrations'; import { DOCS_ENGINE_FOUNDATION, DOCS_OVERVIEW_INTRO, DOCS_OVERVIEW_PATHS, } from '@/lib/docs-overview'; const HEADLESS_INTEGRATION_ICONS: Record = { react: , vue: , svelte: , angular: , }; const INTEGRATION_ICONS: Record = { vanilla: , ...HEADLESS_INTEGRATION_ICONS, }; const TONES = { viewer: { accent: '#0876FD', card: 'border-[#BFD8FB] bg-[#ECF3FE]', badge: 'bg-[#DDEBFF] text-[#075FCB]', check: 'bg-[#DCEBFF] text-[#0876FD]', }, headless: { accent: '#9747FF', card: 'border-[#D9C8F8] bg-[#F5F0FE]', badge: 'bg-[#ECE2FB] text-[#6A2BC9]', check: 'bg-[#EDE3FC] text-[#7C3AED]', }, } as const; function Check({ tone }: { tone: keyof typeof TONES }) { return ( ); } function IntegrationLink({ integration, product, }: { integration: DocsIntegration; product: 'viewer' | 'headless'; }) { const isViewer = product === 'viewer'; return ( {INTEGRATION_ICONS[integration]} {DOCS_INTEGRATION_LABELS[integration]} ); } function PathCard({ path }: { path: (typeof DOCS_OVERVIEW_PATHS)[number] }) { const tone = TONES[path.id]; return (
{path.eyebrow}

{path.title}

{path.description}

    {path.features.map((feature) => (
  • {feature}
  • ))}
{path.integrations.map((integration) => ( ))}
); } const ENGINE_FEATURE_ICONS: ReactNode[] = [ , , , , ]; function EngineFoundation() { const titleWords = DOCS_ENGINE_FOUNDATION.title.split(' '); return (
} > {DOCS_ENGINE_FOUNDATION.eyebrow}
{/* Illustration */}
{Array.from({ length: 18 }).map((_, i) => ( ))}
EmbedPDF Engine — PDFium powered
{/* Content */}

{titleWords.map((word, i) => ( {i > 0 ? ' ' : ''} {word} ))}

{DOCS_ENGINE_FOUNDATION.description}

    {DOCS_ENGINE_FOUNDATION.features.map((feature, i) => (
  • {ENGINE_FEATURE_ICONS[i]} {feature}
  • ))}
{DOCS_ENGINE_FOUNDATION.cta} {DOCS_ENGINE_FOUNDATION.apiCta}
); } export function DocsOverview() { return (
} > EmbedPDF Documentation

Build PDF experiences your way.

{DOCS_OVERVIEW_INTRO}

{DOCS_OVERVIEW_PATHS.map((path) => ( ))}
); }