'use client';
import { Document, Page, StyleSheet, Text, View } from '@react-pdf/renderer';
import dynamic from 'next/dynamic';
export const runtime = 'edge';
const PDFViewerNoSSR = dynamic(() => import('@react-pdf/renderer').then((mod) => mod.PDFViewer), {
ssr: false
});
export default function PDFTest() {
return (
);
}
const MyDocument = () => (
Section #1
Section #2
);
const styles = StyleSheet.create({
page: {
flexDirection: 'row',
backgroundColor: '#E4E4E4'
},
section: {
margin: 10,
padding: 10,
flexGrow: 1
}
});