mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 08:42:12 +10:00
page margin
This commit is contained in:
@ -21,8 +21,7 @@ export default function PDFViewer() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<label htmlFor="file">Load from file:</label>{" "}
|
<div className="">
|
||||||
<input onChange={onFileChange} type="file" />
|
|
||||||
<Document
|
<Document
|
||||||
file={"/sample.pdf"}
|
file={"/sample.pdf"}
|
||||||
onLoadSuccess={onDocumentLoadSuccess}
|
onLoadSuccess={onDocumentLoadSuccess}
|
||||||
@ -30,6 +29,7 @@ export default function PDFViewer() {
|
|||||||
>
|
>
|
||||||
{Array.from({ length: numPages }, (_, index) => (
|
{Array.from({ length: numPages }, (_, index) => (
|
||||||
<Page
|
<Page
|
||||||
|
className="mt-5"
|
||||||
key={`page_${index + 1}`}
|
key={`page_${index + 1}`}
|
||||||
pageNumber={index + 1}
|
pageNumber={index + 1}
|
||||||
renderAnnotationLayer={false}
|
renderAnnotationLayer={false}
|
||||||
@ -37,6 +37,7 @@ export default function PDFViewer() {
|
|||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</Document>
|
</Document>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user