Skip to content

Commit

Permalink
fix: pdf styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Jul 22, 2024
1 parent bc7fdb5 commit 8a23a91
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/pdf/src/report.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@ import type { Udap, Report, Service_instructeurs, Clause_v2 } from "@cr-vif/elec
export const ReportPDFDocument = ({ udap, htmlString, images }: ReportPDFDocumentProps) => {
return (
<Document>
<Page size="A4">
<Page
minPresenceAhead={20}
size="A4"
style={{
paddingTop: "32px",
paddingBottom: "32px",
}}
>
<Html
style={{
fontSize: "12px",
paddingLeft: "20px",
paddingRight: "20px",
paddingTop: "20px",
paddingLeft: "32px",
paddingRight: "32px",
whiteSpace: "pre-line",
}}
>{`
Expand Down Expand Up @@ -66,6 +72,7 @@ export const ReportPDFDocument = ({ udap, htmlString, images }: ReportPDFDocumen
}
.right-texts {
margin-top: 13px;
display: flex;
align-items: flex-end;
flex-direction: column;
Expand All @@ -75,7 +82,7 @@ export const ReportPDFDocument = ({ udap, htmlString, images }: ReportPDFDocumen
.right-texts > div {
text-align: right;
font-size: 16px;
font-size: 14px;
font-family: Helvetica-Bold;
}
Expand Down

0 comments on commit 8a23a91

Please sign in to comment.