Html2pdf using open pdf (#11178)

* Added inital changes html to pdf using openPdf

* Added changes to pdf for external style

* Added chnages via flying saucer

* Added changes ti fix the issue

* Added inital changes

* Simplyfied the core logic

* Created a sperate package

* Added changes for making it more modular

* Added Image attribute update

* Added chnages to add images

* Added changes

* Style validation

* Added changes to fix the styles

* Review comments updates

* Corrected the versions

* Fixed the review commit

* Added changes to fix the indendation issue

Co-authored-by: Amitabh.Tiwari <amitabh.tiwari@maersk.com>
This commit is contained in:
Amitabh Tiwari
2021-09-17 07:31:41 +05:30
committed by GitHub
parent b441c62f0e
commit 2a68c0e2bb
7 changed files with 220 additions and 0 deletions
Binary file not shown.
@@ -0,0 +1,26 @@
<html>
<head>
<style>
.center_div {
border: 1px solid gray;
margin-left: auto;
margin-right: auto;
width: 90%;
background-color: #d0f0f6;
text-align: left;
padding: 8px;
}
</style>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div class="center_div">
<h1>Hello Baeldung!</h1>
<img src="Java_logo.png">
<div class="myclass">
<p>This is the tutorial to convert html to pdf.</p>
</div>
</div>
</body>
</html>
+6
View File
@@ -0,0 +1,6 @@
.myclass{
font-family: Helvetica, sans-serif;
font-size:25;
font-weight: normal;
color: blue;
}