Skip to content

Commit

Permalink
render bland pdf by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Dec 19, 2023
1 parent 1e43cb3 commit 048ef08
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions src/components/generator/preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,31 +48,19 @@ export function Preview() {
return (
<Output>
<PdfContainer>
{/* To prevent a white flash whenever the PDF is regenerated, this extra PDF document is always displayed underneath the actual PDF document. */}
{/* <ResumeDocument file="/blank.pdf">
<ResumeDocument
file={resume.url || '/blank.pdf'}
onLoadSuccess={handleDocumentLoadSuccess}
loading=""
>
<ResumePage
pageNumber={1}
pageNumber={pageNumber}
scale={scale}
renderAnnotationLayer={false}
renderTextLayer={false}
loading=""
/>
</ResumeDocument> */}
{resume.url && (
<ResumeDocument
file={resume.url}
onLoadSuccess={handleDocumentLoadSuccess}
loading=""
>
<ResumePage
pageNumber={pageNumber}
scale={scale}
renderAnnotationLayer={false}
renderTextLayer={false}
loading=""
/>
</ResumeDocument>
)}
</ResumeDocument>
</PdfContainer>
</Output>
)
Expand Down

0 comments on commit 048ef08

Please sign in to comment.