Skip to content

Commit

Permalink
PDF Settings Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
ahany42 committed Jun 27, 2024
1 parent 46b911d commit e88902c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,13 @@ button{
}
#CV{
display:none;
width:90%;
width:85%;
border:1px solid black;
padding:1em;
margin:1em;
background-color: white;
margin:auto;
justify-self: center;

}
.CVHeader{
flex-direction: column;
Expand Down
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ function Section3(event){
CreateCV();
var element = document.getElementById('CV');
var opt = {
margin: 1,
margin: 0,
filename: Name.value+"'s"+"CV.pdf",
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2 },
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
image: { type: 'png', quality: 0.85 },
html2canvas: { scale: 2},
jsPDF: { unit: 'in', format: 'A4', orientation: 'portrait' }
};
html2pdf().set(opt).from(element).save();


}

0 comments on commit e88902c

Please sign in to comment.