diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..706006e --- /dev/null +++ b/.classpath @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..30eb970 --- /dev/null +++ b/.project @@ -0,0 +1,31 @@ + + + ResumeBuilderPrototype2 + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.wst.common.project.facet.core.builder + + + + + org.eclipse.wst.validation.validationbuilder + + + + + + org.eclipse.jem.workbench.JavaEMFNature + org.eclipse.wst.common.modulecore.ModuleCoreNature + org.eclipse.wst.common.project.facet.core.nature + org.eclipse.jdt.core.javanature + org.eclipse.wst.jsdt.core.jsNature + + diff --git a/.settings/.jsdtscope b/.settings/.jsdtscope new file mode 100644 index 0000000..92e666d --- /dev/null +++ b/.settings/.jsdtscope @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..0c68a61 --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.wst.common.component b/.settings/org.eclipse.wst.common.component new file mode 100644 index 0000000..45437c7 --- /dev/null +++ b/.settings/org.eclipse.wst.common.component @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/.settings/org.eclipse.wst.common.project.facet.core.xml b/.settings/org.eclipse.wst.common.project.facet.core.xml new file mode 100644 index 0000000..a876f17 --- /dev/null +++ b/.settings/org.eclipse.wst.common.project.facet.core.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.container b/.settings/org.eclipse.wst.jsdt.ui.superType.container new file mode 100644 index 0000000..3bd5d0a --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.container @@ -0,0 +1 @@ +org.eclipse.wst.jsdt.launching.baseBrowserLibrary \ No newline at end of file diff --git a/.settings/org.eclipse.wst.jsdt.ui.superType.name b/.settings/org.eclipse.wst.jsdt.ui.superType.name new file mode 100644 index 0000000..05bd71b --- /dev/null +++ b/.settings/org.eclipse.wst.jsdt.ui.superType.name @@ -0,0 +1 @@ +Window \ No newline at end of file diff --git a/WebContent/DownloadPage.css b/WebContent/DownloadPage.css new file mode 100644 index 0000000..af991b1 --- /dev/null +++ b/WebContent/DownloadPage.css @@ -0,0 +1,104 @@ +@CHARSET "ISO-8859-1"; +.box1{ + background:#33bbff; + position:absolute; + top:00px; + left:00px; + width:700px; + height:150px; + width:1365px; + border:transparent; + padding:00px; + margin:00px; + +} +#logo +{ + position:absolute; + top:10px; + left:130px; + +} +#header-text +{ + font-family: 'David Libre', serif; + font-size:70px; + position:absolute; + top:25px; + left:250px; + +} +hr +{ + height:1px; + border:none; color:#000; + background-color:#000; + width:100%; + text-align:center; + margin: 0 auto; + position:absolute; + top:150px; + left:00px; +} +.box2{ + background:white; + position:absolute; + top:240px; + left:105px; + width:800px; + height:150px; + width:500px; + border:transparent; + padding:00px; + margin:00px; + +} +.box3{ + background:white; + position:absolute; + top:240px; + left:690px; + width:800px; + height:150px; + width:500px; + border:transparent; + padding:00px; + margin:00px; + +} +input[type="submit"] +{ + width:250px; + height:40px; + cursor:pointer; + margin:5px; + border-radius:50px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#button1 +{ + position:absolute; + top:700px; + left:120px; +} +#button2 +{ + position:absolute; + top:700px; + left:120px; +} +h1 +{ +position:absolute; + top:150px; + left:210px; +} \ No newline at end of file diff --git a/WebContent/DownloadPage.js b/WebContent/DownloadPage.js new file mode 100644 index 0000000..4ab1c2c --- /dev/null +++ b/WebContent/DownloadPage.js @@ -0,0 +1,22 @@ +/** + * + */ +var slideIndex = 1; +showDivs(slideIndex); + +function plusDivs(n) { + showDivs(slideIndex += n); +} + +function showDivs(n) { + var i; + var x = document.getElementsByClassName("mySlides"); + if (n > x.length) {slideIndex = 1} + if (n < 1) {slideIndex = x.length} + for (i = 0; i < x.length; i++) { + x[i].style.display = "none"; + } + x[slideIndex-1].style.display = "block"; +} +< +> \ No newline at end of file diff --git a/WebContent/DownloadPage.jsp b/WebContent/DownloadPage.jsp new file mode 100644 index 0000000..ac9d202 --- /dev/null +++ b/WebContent/DownloadPage.jsp @@ -0,0 +1,39 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + +
+ + +
+
+

Please select a format and click on the download button...

+
+
+ + +
+
+
+
+ + +
+
+ + \ No newline at end of file diff --git a/WebContent/IA.css b/WebContent/IA.css new file mode 100644 index 0000000..c8453b4 --- /dev/null +++ b/WebContent/IA.css @@ -0,0 +1,679 @@ +@CHARSET "ISO-8859-1"; +.box1{ + background:#33bbff; + position:absolute; + top:00px; + left:00px; + width:700px; + height:150px; + width:1365px; + border:transparent; + padding:00px; + margin:00px; + +} +#logo +{ + position:absolute; + top:10px; + left:130px; + +} +#header-text +{ + font-family: 'David Libre', serif; + font-size:70px; + position:absolute; + top:25px; + left:250px; + +} +hr +{ + height:1px; + border:none; color:#000; + background-color:#000; + width:100%; + text-align:center; + margin: 0 auto; + position:absolute; + top:150px; + left:00px; +} +.box2{ + background:white; + position:absolute; + top:180px; + left:80px; + width:700px; + height:400px; + width:260px; + border:5px solid black; + padding:00px; + margin:00px; +} +input[type="button"] +{ + width:250px; + height:40px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:left; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#button +{ + text-align:center; +} +#active1 +{ + color:red; + +} +#arrow-right1 +{ + position:absolute; + top:18px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right2 { + display:none; + position:absolute; + top:65px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right3 { + display:none; + position:absolute; + top:115px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right4 { + display:none; + position:absolute; + top:165px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right5 { + display:none; + position:absolute; + top:215px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right6 { + display:none; + position:absolute; + top:263px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right7 { + display:none; + position:absolute; + top:315px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +#arrow-right8 { + display:none; + position:absolute; + top:365px; + left:260px; + width: 0; + height: 0; + border-top: 10px solid transparent; + border-bottom: 10px solid transparent; + border-left: 10px solid red; +} +.box3{ + background:white; + position:absolute; + top:180px; + left:380px; + width:700px; + height:1600px; + width:660px; + border:5px solid black; + padding:00px; + margin:00px; +} +field +{ + display:none; +} +#first +{ + display:block; +} +input[type="text"] +{ + border: 3px solid black; + border-radius: 4px; + box-shadow: 0 1px #fff; + box-sizing: border-box; + color: #696969; + height: 39px; + margin: 15px 0 0 15px; + padding-left: 10px; + transition: box-shadow 0.3s; + width: 240px; +} +textarea +{ + position:absolute; + top:50px; + left:50px; + border: 3px solid black; + border-radius: 4px; + box-shadow: 0 1px #fff; + box-sizing: border-box; + color: #696969; + height: 150px; + margin: 0px 0 0 0px; + padding-left: 10px; + transition: box-shadow 0.3s; + width: 565px; +} +input[type="addbutton1"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +input[type="addbutton2"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#sub2 +{ + display:none; +} +input[type="addbutton3"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#sub3 +{ + display:none; +} +input[type="addbutton4"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#sub4 +{ + display:none; +} +input[type="addbutton5"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#sub5 +{ + display:none; +} +#sub6 +{ + display:none; +} +input[type="addbutton6"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#expsub2 +{ + display:none; +} +input[type="addbutton7"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#expsub3 +{ + display:none; +} +input[type="addbutton8"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#expsub4 +{ + display:none; +} +input[type="addbutton9"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#expsub5 +{ + display:none; +} +input[type="addbutton10"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#expsub6 +{ + display:none; +} +input[type="addbutton11"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#prosub2 +{ + display:none; +} +input[type="addbutton12"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#prosub3 +{ + display:none; +} +input[type="addbutton13"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#prosub4 +{ + display:none; +} +input[type="addbutton14"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#prosub5 +{ + display:none; +} +input[type="addbutton15"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#prosub6 +{ + display:none; +} +input[type="addbutton16"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#trainsub2 +{ + display:none; +} +input[type="addbutton17"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#trainsub3 +{ + display:none; +} +input[type="addbutton18"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#trainsub4 +{ + display:none; +} +input[type="addbutton19"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#trainsub5 +{ + display:none; +} +input[type="addbutton20"] +{ + width:40px; + height:20px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} +#trainsub6 +{ + display:none; +} +input[type="submit"] +{ + position:absolute; + top:180px; + left:1100px; + width:140px; + height:50px; + cursor:pointer; + margin:5px; + border-radius:20px; + text-decoration:none; + text-align:center; + padding:10px; + font-size:19px; + transition:.3s; + -webkit-transition:.3s; + -moz-transition:.3s; + -o-transition:.3s; + display:inline-block; + background:white; +} \ No newline at end of file diff --git a/WebContent/IA.js b/WebContent/IA.js new file mode 100644 index 0000000..d290aed --- /dev/null +++ b/WebContent/IA.js @@ -0,0 +1,283 @@ +/** + * + */ +/** + * + */ + + var array1=['active1','active2','active3','active4','active5','active6','active7','active8']; + var array2=['arrow-right1','arrow-right2','arrow-right3','arrow-right4','arrow-right5','arrow-right6','arrow-right7','arrow-right8']; + var array3=['first','second','third','fourth','fifth','sixth','seventh','eighth']; +function step1() +{ + for(var i=0;i<8;i++) + { + if(i==0) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + + } + + } + +} +function step2() +{ + for(var i=0;i<8;i++) + { + if(i==1) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById("first").style.display="none"; + } + + } +} +function step3() +{ + for(var i=0;i<8;i++) + { + if(i==2) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + + } + } + } +function step4() +{ + for(var i=0;i<8;i++) + { + if(i==3) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + } + } + } +function step5() +{ + for(var i=0;i<8;i++) + { + if(i==4) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + } + } +} +function step6() +{ + for(var i=0;i<8;i++) + { + if(i==5) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + } + } +} +function step7() +{ + for(var i=0;i<8;i++) + { + if(i==6) + { + document.getElementById(array1[i]).style.color="red"; + + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + + } + + } + + +} +function step8() +{ + for(var i=0;i<8;i++) + { + if(i==7) + { + document.getElementById(array1[i]).style.color="red"; + document.getElementById(array2[i]).style.display="block"; + document.getElementById(array3[i]).style.display="block"; + + } + else + { + document.getElementById(array1[i]).style.color="black"; + document.getElementById(array2[i]).style.display="none"; + document.getElementById(array3[i]).style.display="none"; + + } + + } +} +function addfield1() +{ + document.getElementById("a1").style.display="none"; + document.getElementById("sub2").style.display="block"; +} +function addfield2() +{ + document.getElementById("a2").style.display="none"; + document.getElementById("sub3").style.display="block"; + + } +function addfield3() +{ + document.getElementById("a3").style.display="none"; + document.getElementById("sub4").style.display="block"; + + } +function addfield4() +{ + document.getElementById("a4").style.display="none"; + document.getElementById("sub5").style.display="block"; + + } +function addfield5() +{ + document.getElementById("a5").style.display="none"; + document.getElementById("sub6").style.display="block"; + + } +function addfield6() +{ + document.getElementById("e1").style.display="none"; + document.getElementById("expsub2").style.display="block"; + + } +function addfield7() +{ + document.getElementById("e2").style.display="none"; + document.getElementById("expsub3").style.display="block"; + + } +function addfield8() +{ + document.getElementById("e3").style.display="none"; + document.getElementById("expsub4").style.display="block"; + + } +function addfield9() +{ + document.getElementById("e4").style.display="none"; + document.getElementById("expsub5").style.display="block"; + + } +function addfield10() +{ + document.getElementById("e5").style.display="none"; + document.getElementById("expsub6").style.display="block"; + + } +function addfield11() +{ + document.getElementById("p1").style.display="none"; + document.getElementById("prosub2").style.display="block"; + + } +function addfield12() +{ + document.getElementById("p2").style.display="none"; + document.getElementById("prosub3").style.display="block"; + } +function addfield13() +{ + document.getElementById("p3").style.display="none"; + document.getElementById("prosub4").style.display="block"; + } +function addfield14() +{ + document.getElementById("p4").style.display="none"; + document.getElementById("prosub5").style.display="block"; + } +function addfield15() +{ + document.getElementById("p5").style.display="none"; + document.getElementById("prosub6").style.display="block"; + } +function addfield16() +{ + document.getElementById("t1").style.display="none"; + document.getElementById("trainsub2").style.display="block"; + } +function addfield17() +{ + document.getElementById("t2").style.display="none"; + document.getElementById("trainsub3").style.display="block"; + } +function addfield18() +{ + document.getElementById("t3").style.display="none"; + document.getElementById("trainsub4").style.display="block"; + } +function addfield19() +{ + document.getElementById("t4").style.display="none"; + document.getElementById("trainsub5").style.display="block"; + } +function addfield20() +{ + document.getElementById("t5").style.display="none"; + document.getElementById("trainsub6").style.display="block"; + } \ No newline at end of file diff --git a/WebContent/IA.jsp b/WebContent/IA.jsp new file mode 100644 index 0000000..c049dda --- /dev/null +++ b/WebContent/IA.jsp @@ -0,0 +1,259 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Insert title here + + + + + + +
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + +
+ + + + +
+ +
+
+
+ + + + +
+ +
+
+
+ + + + +
+ +
+
+
+ + + + +
+ +
+
+
+ + + + +
+ +
+
+
+ + + + +
+
+ +
+ + + +
+ +
+
+
+ + + +
+ +
+
+
+ + + +
+ +
+
+
+ + + +
+ +
+
+
+ + + +
+ +
+
+
+ + + +
+
+ +
+ + + + + +
+ +
+
+
+ + + + + +
+ +
+
+
+ + + + + +
+ +
+
+
+ + + + + +
+ +
+
+
+ + + + + +
+ +
+
+
+ + + + + +
+
+ +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+ + + + + + + + + + + + +
+ +
+ + \ No newline at end of file diff --git a/WebContent/META-INF/MANIFEST.MF b/WebContent/META-INF/MANIFEST.MF new file mode 100644 index 0000000..254272e --- /dev/null +++ b/WebContent/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/WebContent/WEB-INF/web.xml b/WebContent/WEB-INF/web.xml new file mode 100644 index 0000000..b3f5898 --- /dev/null +++ b/WebContent/WEB-INF/web.xml @@ -0,0 +1,39 @@ + + + ResumeBuilderPrototype1 + + Handler + Core.Handler + + + Handler + /Handler + + + DownloadFileServlet + Core.DownloadFileServlet + + + DownloadFileServlet + /DownloadFileServlet + + + DownloadType1 + Core.DownloadType1 + + + DownloadType1 + /DownloadType1 + + + DownloadType2 + Core.DownloadType2 + + + DownloadType2 + /DownloadType2 + + +home.jsp + + \ No newline at end of file diff --git a/WebContent/home.css b/WebContent/home.css new file mode 100644 index 0000000..d9dce18 --- /dev/null +++ b/WebContent/home.css @@ -0,0 +1,133 @@ +@CHARSET "ISO-8859-1"; +.box1{ + background:#33bbff; + position:absolute; + top:00px; + left:00px; + width:700px; + height:150px; + width:1365px; + border:transparent; + padding:00px; + margin:00px; + +} +#logo +{ + position:absolute; + top:10px; + left:130px; + +} +#header-text +{ + font-family: 'David Libre', serif; + font-size:70px; + position:absolute; + top:25px; + left:250px; + +} +hr +{ + height:1px; + border:none; color:#000; + background-color:#000; + width:100%; + text-align:center; + margin: 0 auto; + position:absolute; + top:150px; + left:00px; +} +.box2 +{ + background: #ffcccc; + position:absolute; + top:150px; + left:00px; + width:700px; + height:500px; + width:1365px; + border:transparent; + padding:00px; + margin:00px; +} +.round-button { + position:absolute; + top:150px; + left:610px; + display:block; + width:120px; + height:120px; + line-height:50px; + border: 2px solid #f5f5f5; + border-radius: 50%; + + text-decoration:none; + background: #33bbff; + box-shadow: 0 0 3px gray; + font-size:20px; + font-weight:bold; +} +.round-button:hover { + background:red; +} +#button-text +{ + font-family: 'David Libre', serif; + color:black; +position:absolute; + top:34px; + left:25px; +} +.box3 +{ + background:white; + position:absolute; + top:655px; + left:00px; + width:700px; + height:500px; + width:1365px; + border:transparent; + padding:00px; + margin:00px; +} +#cv1 +{ + position:absolute; + top:05px; + left:10px; + +} +#cv2 +{ + position:absolute; + top:05px; + left:676px; + +} +.box4 +{ + background:black; + position:absolute; + top:1156px; + left:00px; + width:100%; + height:50px; + width:1365px; + border:transparent; + padding:00px; + margin:00px; + +} +#footer-text +{ + font-family: 'David Libre', serif; + font-size:20px; + color:white; + position:absolute; + top:15px; + left:400px; +} \ No newline at end of file diff --git a/WebContent/home.jsp b/WebContent/home.jsp new file mode 100644 index 0000000..4c7ed56 --- /dev/null +++ b/WebContent/home.jsp @@ -0,0 +1,44 @@ +<%@ page language="java" contentType="text/html; charset=ISO-8859-1" + pageEncoding="ISO-8859-1"%> + + + + +Resume Builder + + + + + +
+ + +
+
+ + +
+
CREATE
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+ + \ No newline at end of file diff --git a/WebContent/images/CvScreenShot.PNG b/WebContent/images/CvScreenShot.PNG new file mode 100644 index 0000000..4f0cba7 Binary files /dev/null and b/WebContent/images/CvScreenShot.PNG differ diff --git a/WebContent/images/CvScreenShot2.PNG b/WebContent/images/CvScreenShot2.PNG new file mode 100644 index 0000000..f176bd8 Binary files /dev/null and b/WebContent/images/CvScreenShot2.PNG differ diff --git a/WebContent/images/CvScreenShot3.PNG b/WebContent/images/CvScreenShot3.PNG new file mode 100644 index 0000000..1cf308b Binary files /dev/null and b/WebContent/images/CvScreenShot3.PNG differ diff --git a/WebContent/images/Logo3.png b/WebContent/images/Logo3.png new file mode 100644 index 0000000..d165005 Binary files /dev/null and b/WebContent/images/Logo3.png differ diff --git a/WebContent/images/ResumeType1jpg.jpg b/WebContent/images/ResumeType1jpg.jpg new file mode 100644 index 0000000..7beeb18 Binary files /dev/null and b/WebContent/images/ResumeType1jpg.jpg differ diff --git a/WebContent/images/ResumeType2jpg.jpg b/WebContent/images/ResumeType2jpg.jpg new file mode 100644 index 0000000..a29f9c0 Binary files /dev/null and b/WebContent/images/ResumeType2jpg.jpg differ diff --git a/WebContent/images/test.jpg b/WebContent/images/test.jpg new file mode 100644 index 0000000..7bc493e Binary files /dev/null and b/WebContent/images/test.jpg differ diff --git a/build/classes/Core/DownloadFileServlet.class b/build/classes/Core/DownloadFileServlet.class new file mode 100644 index 0000000..5334be1 Binary files /dev/null and b/build/classes/Core/DownloadFileServlet.class differ diff --git a/build/classes/Core/DownloadType1.class b/build/classes/Core/DownloadType1.class new file mode 100644 index 0000000..a98386c Binary files /dev/null and b/build/classes/Core/DownloadType1.class differ diff --git a/build/classes/Core/DownloadType2.class b/build/classes/Core/DownloadType2.class new file mode 100644 index 0000000..7c5ad9e Binary files /dev/null and b/build/classes/Core/DownloadType2.class differ diff --git a/build/classes/Core/Handler.class b/build/classes/Core/Handler.class new file mode 100644 index 0000000..2d55260 Binary files /dev/null and b/build/classes/Core/Handler.class differ diff --git a/build/classes/Core/Type1.class b/build/classes/Core/Type1.class new file mode 100644 index 0000000..ee1fb05 Binary files /dev/null and b/build/classes/Core/Type1.class differ diff --git a/build/classes/Core/Type2.class b/build/classes/Core/Type2.class new file mode 100644 index 0000000..ec62c9c Binary files /dev/null and b/build/classes/Core/Type2.class differ diff --git a/pdffiles/ResumeType1.pdf b/pdffiles/ResumeType1.pdf new file mode 100644 index 0000000..8d5e099 Binary files /dev/null and b/pdffiles/ResumeType1.pdf differ diff --git a/pdffiles/ResumeType2.pdf b/pdffiles/ResumeType2.pdf new file mode 100644 index 0000000..5dd2793 Binary files /dev/null and b/pdffiles/ResumeType2.pdf differ diff --git a/pdffiles/ResumeType3.pdf b/pdffiles/ResumeType3.pdf new file mode 100644 index 0000000..9e1deea Binary files /dev/null and b/pdffiles/ResumeType3.pdf differ diff --git a/pdffiles/ResumeType4.pdf b/pdffiles/ResumeType4.pdf new file mode 100644 index 0000000..62457ee Binary files /dev/null and b/pdffiles/ResumeType4.pdf differ diff --git a/src/Core/DownloadFileServlet.java b/src/Core/DownloadFileServlet.java new file mode 100644 index 0000000..b3d4ca4 --- /dev/null +++ b/src/Core/DownloadFileServlet.java @@ -0,0 +1,62 @@ +package Core; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.OutputStream; + +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public class DownloadFileServlet extends HttpServlet { + + protected void doGet(HttpServletRequest request, + HttpServletResponse response) throws ServletException, IOException { + // reads input file from an absolute path + System.out.println("test"); + String filePath ="C:/Users/sudeep ghosh/Desktop/ResumeType7.pdf"; + File downloadFile = new File(filePath); + FileInputStream inStream = new FileInputStream(downloadFile); + + // if you want to use a relative path to context root: + String relativePath = getServletContext().getRealPath(""); + System.out.println("relativePath = " + relativePath); + + // obtains ServletContext + ServletContext context = getServletContext(); + + // gets MIME type of the file + String mimeType = context.getMimeType(filePath); + if (mimeType == null) { + // set to binary type if MIME mapping not found + mimeType = "application/octet-stream"; + } + System.out.println("MIME type: " + mimeType); + + // modifies response + response.setContentType(mimeType); + response.setContentLength((int) downloadFile.length()); + + // forces download + String headerKey = "Content-Disposition"; + String headerValue = String.format("attachment; filename=\"%s\"", downloadFile.getName()); + response.setHeader(headerKey, headerValue); + + // obtains response's output stream + OutputStream outStream = response.getOutputStream(); + + byte[] buffer = new byte[4096]; + int bytesRead = -1; + + while ((bytesRead = inStream.read(buffer)) != -1) { + outStream.write(buffer, 0, bytesRead); + } + + inStream.close(); + outStream.close(); + } + +} \ No newline at end of file diff --git a/src/Core/DownloadType1.java b/src/Core/DownloadType1.java new file mode 100644 index 0000000..99b0c0a --- /dev/null +++ b/src/Core/DownloadType1.java @@ -0,0 +1,62 @@ +package Core; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.OutputStream; + +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public class DownloadType1 extends HttpServlet { + + protected void doGet(HttpServletRequest request, + HttpServletResponse response) throws ServletException, IOException { + // reads input file from an absolute path + System.out.println("test"); + String filePath ="C:/Users/sudeep ghosh/workspace/ResumeBuilderPrototype2/pdffiles/ResumeType3.pdf"; + File downloadFile = new File(filePath); + FileInputStream inStream = new FileInputStream(downloadFile); + + // if you want to use a relative path to context root: + String relativePath = getServletContext().getRealPath(""); + System.out.println("relativePath = " + relativePath); + + // obtains ServletContext + ServletContext context = getServletContext(); + + // gets MIME type of the file + String mimeType = context.getMimeType(filePath); + if (mimeType == null) { + // set to binary type if MIME mapping not found + mimeType = "application/octet-stream"; + } + System.out.println("MIME type: " + mimeType); + + // modifies response + response.setContentType(mimeType); + response.setContentLength((int) downloadFile.length()); + + // forces download + String headerKey = "Content-Disposition"; + String headerValue = String.format("attachment; filename=\"%s\"", downloadFile.getName()); + response.setHeader(headerKey, headerValue); + + // obtains response's output stream + OutputStream outStream = response.getOutputStream(); + + byte[] buffer = new byte[4096]; + int bytesRead = -1; + + while ((bytesRead = inStream.read(buffer)) != -1) { + outStream.write(buffer, 0, bytesRead); + } + + inStream.close(); + outStream.close(); + } + +} \ No newline at end of file diff --git a/src/Core/DownloadType2.java b/src/Core/DownloadType2.java new file mode 100644 index 0000000..c800e22 --- /dev/null +++ b/src/Core/DownloadType2.java @@ -0,0 +1,62 @@ +package Core; + +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.OutputStream; + +import javax.servlet.ServletContext; +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +public class DownloadType2 extends HttpServlet { + + protected void doGet(HttpServletRequest request, + HttpServletResponse response) throws ServletException, IOException { + // reads input file from an absolute path + System.out.println("test"); + String filePath ="C:/Users/sudeep ghosh/workspace/ResumeBuilderPrototype2/pdffiles/ResumeType4.pdf"; + File downloadFile = new File(filePath); + FileInputStream inStream = new FileInputStream(downloadFile); + + // if you want to use a relative path to context root: + String relativePath = getServletContext().getRealPath(""); + System.out.println("relativePath = " + relativePath); + + // obtains ServletContext + ServletContext context = getServletContext(); + + // gets MIME type of the file + String mimeType = context.getMimeType(filePath); + if (mimeType == null) { + // set to binary type if MIME mapping not found + mimeType = "application/octet-stream"; + } + System.out.println("MIME type: " + mimeType); + + // modifies response + response.setContentType(mimeType); + response.setContentLength((int) downloadFile.length()); + + // forces download + String headerKey = "Content-Disposition"; + String headerValue = String.format("attachment; filename=\"%s\"", downloadFile.getName()); + response.setHeader(headerKey, headerValue); + + // obtains response's output stream + OutputStream outStream = response.getOutputStream(); + + byte[] buffer = new byte[4096]; + int bytesRead = -1; + + while ((bytesRead = inStream.read(buffer)) != -1) { + outStream.write(buffer, 0, bytesRead); + } + + inStream.close(); + outStream.close(); + } + +} \ No newline at end of file diff --git a/src/Core/Handler.java b/src/Core/Handler.java new file mode 100644 index 0000000..08a3a80 --- /dev/null +++ b/src/Core/Handler.java @@ -0,0 +1,631 @@ +package Core; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.PrintWriter; +import java.util.ArrayList; +import java.util.Date; + +import javax.servlet.RequestDispatcher; +import javax.servlet.http.*; + +import com.itextpdf.text.Document; +import com.itextpdf.text.DocumentException; +import com.itextpdf.text.pdf.PdfWriter; +public class Handler extends HttpServlet +{ + PdfWriter writer; + String typeonelocation="C:\\Users\\sudeep ghosh\\workspace\\ResumeBuilderPrototype2\\pdffiles\\ResumeType3.pdf"; + String typetwolocation="C:\\Users\\sudeep ghosh\\workspace\\ResumeBuilderPrototype2\\pdffiles\\ResumeType4.pdf"; + public void doGet(HttpServletRequest request,HttpServletResponse response) throws IOException + { + response.setContentType("test/html"); + PrintWriter out=response.getWriter(); + //String fullname="Abhinav Anand"; + String fullname=request.getParameter("fullname"); + String tjobprofile="Job Profile - "; + //String jobprofile="Database Admin"; + String jobprofile=request.getParameter("jobprofile"); + String tcontactnumber="Contact Number - "; + //String contactnumber="+917358011548"; + String contactnumber=request.getParameter("phonenumber"); + String temailid="Email Id - "; + //String emailid="Abhinavanand010@gmail.com"; + String emailid=request.getParameter("emailid"); + String taddress="Address - "; + String address=request.getParameter("address"); + //String address=request.getParameter("address"); + String tintro="My Work and area of intrest"; + //String intro="A passionate programmer, an admirer and strict follower of Object Orient Programming. Obsessed about coding standards and code quality. As a developer in HCL I have extensively worked with JAVA Reflection API to create generic frameworks which are plug-gable and can be easily extended. As a part of my work have created Validation Framework, Role based permission checking framework. Annotation Processing and meta programming are my other work area. I have also been working with Spring 3 and Hibernate 4.1 to create a Restful web services. Overall 17 months of experience in development of Web & Enterprise applications using JAVA and J2EE"; + String intro=request.getParameter("introduction"); + String tacademicdetails="Academic Details"; + String stcourse="* Course/Degree - "; + String stschool=" School/College/University Name - "; + String stmarks=" Percentage/CGPA - "; + String stpassing=" Passing Date/Pursuring"; + String[] course=new String[6]; + course[0]=request.getParameter("course1"); + course[1]=request.getParameter("course2"); + course[2]=request.getParameter("course3"); + course[3]=request.getParameter("course4"); + course[4]=request.getParameter("course5"); + course[5]=request.getParameter("course6"); + String[] uni=new String[6]; + uni[0]=request.getParameter("school1"); + uni[1]=request.getParameter("school2"); + uni[2]=request.getParameter("school3"); + uni[3]=request.getParameter("school4"); + uni[4]=request.getParameter("school5"); + uni[5]=request.getParameter("school6"); + String[] marks=new String[6]; + marks[0]=request.getParameter("percentage1"); + marks[1]=request.getParameter("percentage2"); + marks[2]=request.getParameter("percentage3"); + marks[3]=request.getParameter("percentage4"); + marks[4]=request.getParameter("percentage5"); + marks[5]=request.getParameter("percentage6"); + String[] yop=new String[6]; + yop[0]=request.getParameter("yearofpassing1"); + yop[1]=request.getParameter("yearofpassing2"); + yop[2]=request.getParameter("yearofpassing3"); + yop[3]=request.getParameter("yearofpassing4"); + yop[4]=request.getParameter("yearofpassing5"); + yop[5]=request.getParameter("yearofpassing6"); + + String texp="Experience Details"; + String storg="* Organization - "; + String stdes=" Designation - "; + String stdur=" Duration "; + String[] org=new String[6]; + org[0]=request.getParameter("Organization1"); + org[1]=request.getParameter("Organization2"); + org[2]=request.getParameter("Organization3"); + org[3]=request.getParameter("Organization4"); + org[4]=request.getParameter("Organization5"); + org[5]=request.getParameter("Organization6"); + String[] des=new String[6]; + des[0]=request.getParameter("Designation1"); + des[1]=request.getParameter("Designation2"); + des[2]=request.getParameter("Designation3"); + des[3]=request.getParameter("Designation4"); + des[4]=request.getParameter("Designation5"); + des[5]=request.getParameter("Designation6"); + String[] dur=new String[6]; + dur[0]=request.getParameter("Duration1"); + dur[1]=request.getParameter("Duration2"); + dur[2]=request.getParameter("Duration3"); + dur[3]=request.getParameter("Duration4"); + dur[4]=request.getParameter("Duration5"); + dur[5]=request.getParameter("Duration6"); + String tproject="Project Details"; + String stclient="* Client - "; + String stdesc=" Project Description - "; + String stdura=" Duration - "; + String strole=" Role - "; + String stteam=" Teamsize - "; + String[] client=new String[6]; + client[0]=request.getParameter("client1"); + client[1]=request.getParameter("client2"); + client[2]=request.getParameter("client3"); + client[3]=request.getParameter("client4"); + client[4]=request.getParameter("client5"); + client[5]=request.getParameter("client6"); + String[] projectdes=new String[6]; + projectdes[0]=request.getParameter("ProjectDescription1"); + projectdes[1]=request.getParameter("ProjectDescription2"); + projectdes[2]=request.getParameter("ProjectDescription3"); + projectdes[3]=request.getParameter("ProjectDescription4"); + projectdes[4]=request.getParameter("ProjectDescription5"); + projectdes[5]=request.getParameter("ProjectDescription6"); + String[] dura=new String[6]; + dura[0]=request.getParameter("pDuration1"); + dura[1]=request.getParameter("pDuration2"); + dura[2]=request.getParameter("pDuration3"); + dura[3]=request.getParameter("pDuration4"); + dura[4]=request.getParameter("pDuration5"); + dura[5]=request.getParameter("pDuration6"); + String[] role=new String[6]; + role[0]=request.getParameter("Role1"); + role[1]=request.getParameter("Role2"); + role[2]=request.getParameter("Role3"); + role[3]=request.getParameter("Role4"); + role[4]=request.getParameter("Role5"); + role[5]=request.getParameter("Role6"); + String[] teamsize=new String[6]; + teamsize[0]=request.getParameter("Teamsize1"); + teamsize[1]=request.getParameter("Teamsize2"); + teamsize[2]=request.getParameter("Teamsize3"); + teamsize[3]=request.getParameter("Teamsize4"); + teamsize[4]=request.getParameter("Teamsize5"); + teamsize[5]=request.getParameter("Teamsize6"); + for(int i=0;i<6;i++) + { + System.out.println(teamsize[i]); + System.out.println(client[i]); + } + String cert="Trainning & Certification"; + String[] train=new String[10]; + train[0]=request.getParameter("Tranning1"); + train[1]=request.getParameter("Tranning2"); + train[2]=request.getParameter("Tranning3"); + train[3]=request.getParameter("Tranning4"); + train[4]=request.getParameter("Tranning5"); + train[5]=request.getParameter("Tranning6"); + train[6]=request.getParameter("Tranning7"); + train[7]=request.getParameter("Tranning8"); + train[8]=request.getParameter("Tranning9"); + train[9]=request.getParameter("Tranning10"); + String interest="Interest"; + String[] intr=new String[5]; + intr[0]=request.getParameter("Hobby1"); + intr[1]=request.getParameter("Hobby2"); + intr[2]=request.getParameter("Hobby3"); + intr[3]=request.getParameter("Hobby4"); + intr[4]=request.getParameter("Hobby5"); + String refrences="References"; + String ref=request.getParameter("Refrence1"); + Type1 type1=new Type1(); + Document d1=new Document(); + + int lineindex=0; + + int verticalindex=800; + + try { + + //Creates a pdf writer instance and opens the document and returns a writer type + + PdfWriter writer=type1.getWriter(d1,typeonelocation); + + //Create a border for 1st page + + type1.border(writer); + + //fullname + if((fullname.length())>1) +{ + if((fullname.length())>1) + { + + verticalindex=type1.createHeader(writer, verticalindex, fullname,d1); + + //underline + lineindex=lineindex-10; + type1.underLine(writer, d1, 104, lineindex); + } + //inserts the job profile title and the content + + if(jobprofile!=null && (jobprofile.length())>=1) + { + verticalindex=type1.normalText(writer, verticalindex, tjobprofile+jobprofile); + lineindex=lineindex-21; + } + + //inserts the contact number title and the content + + if(contactnumber!=null && (contactnumber.length())>=1) + { + verticalindex=type1.normalText(writer, verticalindex, tcontactnumber+contactnumber); + lineindex=lineindex-21; + } + + //inserts the email id title and the content + + if(emailid!=null && (emailid.length())>=1) + { + verticalindex=type1.normalText(writer, verticalindex, temailid+emailid); + lineindex=lineindex-21; + } + + //inserts the address title and the content + + if(address!=null && (address.length())>=1) + { + verticalindex=type1.normalText(writer, verticalindex, taddress+address); + lineindex=lineindex-21; + } + type1.underLine(writer, d1, 104, lineindex); + //inserts the intro title and the content +} + if(intro!=null && (intro.length())>=1) + { + //verticalindex=verticalindex-10; + verticalindex=type1.createSubHeader(writer, verticalindex, tintro); + lineindex=lineindex-27; + verticalindex=type1.paragraphText(writer, verticalindex, intro); + int j=0; + do + { + lineindex=lineindex-21; + j=j+138; + }while(j=1) + { + verticalindex=type1.createSubHeader(writer, verticalindex, tacademicdetails); + lineindex=lineindex-25; + int i=0; + while(i<6 && (course[i].length())>1 && uni[i]!=null && marks[i]!=null && yop[i]!=null) + { + verticalindex=type1.normalText(writer, verticalindex, stcourse+course[i]); + lineindex=lineindex-20; + verticalindex=type1.normalText(writer, verticalindex, stschool+uni[i]); + lineindex=lineindex-20; + verticalindex=type1.normalText(writer, verticalindex, stmarks+marks[i]); + lineindex=lineindex-21; + verticalindex=type1.normalText(writer, verticalindex, stpassing+yop[i]); + lineindex=lineindex-21; + System.out.println(i); + i++; + } + type1.underLine(writer, d1, 104, lineindex); + } + + + + if(org[0].length()>1 &&des[0]!=null&&dur[0]!=null) + { + verticalindex=verticalindex-15; + verticalindex=type1.createSubHeader(writer, verticalindex, texp); + lineindex=lineindex-25; + int i=0; + while(i<6 && (org[i].length())>1 && des[i]!=null && dur[i]!=null) + { + verticalindex=type1.normalText(writer, verticalindex,storg+org[i]); + lineindex=lineindex-21; + if(verticalindex<5) + { + type1.newPage(d1); + type1.border(writer); + verticalindex=800; + lineindex=-10; + } + verticalindex=type1.normalText(writer, verticalindex, stdes+des[i]); + lineindex=lineindex-21; + if(verticalindex<5) + { + type1.newPage(d1); + type1.border(writer); + verticalindex=800; + lineindex=-10; + } + verticalindex=type1.normalText(writer, verticalindex, stdur+dur[i]); + lineindex=lineindex-20; + i++; + if(verticalindex<5) + { + type1.newPage(d1); + type1.border(writer); + verticalindex=800; + lineindex=-10; + } + } + type1.underLine(writer, d1, 104, lineindex); + } + //closes the document + + if(client[0]!=null && projectdes[0]!=null && dura[0]!=null && role[0]!=null && teamsize[0]!=null) + { + verticalindex=verticalindex-15; + verticalindex=type1.createSubHeader(writer, verticalindex, tproject); + lineindex=lineindex-25; + int i=0; + while(i<6 && (client[i].length())>1 && projectdes[i]!=null && dura[i]!=null && role[i]!=null && teamsize[i]!=null) + { + verticalindex=type1.normalText(writer, verticalindex,stclient+client[i]); + lineindex=lineindex-19; + System.out.println(client[i]); + verticalindex=type1.normalText(writer, verticalindex, stdesc+projectdes[i]); + lineindex=lineindex-19; + verticalindex=type1.normalText(writer, verticalindex, stdura+dura[i]); + lineindex=lineindex-19; + verticalindex=type1.normalText(writer, verticalindex, strole+role[i]); + lineindex=lineindex-19; + verticalindex=type1.normalText(writer, verticalindex, stteam+teamsize[i]); + lineindex=lineindex-19; + if(verticalindex<5) + { + type1.newPage(d1); + type1.border(writer); + verticalindex=800; + lineindex=-10; + } + i++; + } + } + type1.underLine(writer, d1, 104, lineindex); + + if((train[0].length())>1) + { + verticalindex=verticalindex-15; + verticalindex=type1.createSubHeader(writer, verticalindex, cert); + lineindex=lineindex-25; + int i=0; + while((train[i].length())>1) + { + verticalindex=type1.normalText(writer, verticalindex, "*"+train[i]); + lineindex=lineindex-20; + if(verticalindex<5) + { + type1.newPage(d1); + type1.border(writer); + verticalindex=800; + lineindex=-10; + } + i++; + if(i==5) + { + break; + } + } + } + type1.underLine(writer, d1, 104, lineindex); + if((intr[0].length())>1) + { + verticalindex=verticalindex-10; + verticalindex=type1.createSubHeader(writer, verticalindex, interest); + lineindex=lineindex-25; + int i=0; + while(i<5 && (intr[i].length())>1) + { + verticalindex=type1.normalText(writer, verticalindex,"*"+ intr[i]); + lineindex=lineindex-22; + i++; + } + } + type1.underLine(writer, d1, 104, lineindex); + if((ref.length())>1) + { + verticalindex=verticalindex-10; + verticalindex=type1.createSubHeader(writer, verticalindex, refrences); + lineindex=lineindex-25; + verticalindex=type1.normalText(writer, verticalindex, ref); + lineindex=lineindex-25; + } + type1.underLine(writer, d1, 104, lineindex); + //closes the document + + + type1.close(d1); + + } catch (DocumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + Type2 type2=new Type2(); + Document d2=new Document(); + + lineindex=-10; + + verticalindex=800; + + try { + + //Creates a pdf writer instance and opens the document and returns a writer type + + PdfWriter writer=type2.getWriter(d2,typetwolocation); + + //Create a border for 1st page + + type2.border(writer); + + //fullname + if(fullname.length()>1) + { + verticalindex=type2.createHeader(writer, verticalindex, fullname,d1); + type2.underLine(writer, d2, 104, lineindex); + } + //underline + + + + //inserts the job profile title and the content + + if((jobprofile.length())>1) + { + verticalindex=type2.normalText(writer, verticalindex, tjobprofile+jobprofile); + lineindex=lineindex-22; + } + + //inserts the contact number title and the content + + if((contactnumber.length())>1) + { + verticalindex=type2.normalText(writer, verticalindex, tcontactnumber+contactnumber); + lineindex=lineindex-22; + } + + //inserts the email id title and the content + + if((emailid.length())>1) + { + verticalindex=type2.normalText(writer, verticalindex, temailid+emailid); + lineindex=lineindex-22; + } + + //inserts the address title and the content + + if((address.length())>1) + { + verticalindex=type2.normalText(writer, verticalindex, taddress+address); + lineindex=lineindex-22; + type2.underLine(writer, d2, 104, lineindex); + //inserts the intro title and the content + } + + + if((intro.length())>1) + { + verticalindex=verticalindex-10; + verticalindex=type2.createSubHeader(writer, verticalindex, tintro); + lineindex=lineindex-27; + verticalindex=type2.paragraphText(writer, verticalindex, intro); + int j=0; + do + { + lineindex=lineindex-21; + j=j+138; + }while(j1 && uni[0]!=null && marks[0]!=null && yop[0]!=null) + { + verticalindex=type2.createSubHeader(writer, verticalindex, tacademicdetails); + lineindex=lineindex-25; + int i=0; + while(i<6 && course[i].length()>1 && uni[i]!=null && marks[i]!=null && yop[i]!=null) + { + verticalindex=type2.normalText(writer, verticalindex, stcourse+course[i]); + lineindex=lineindex-21; + verticalindex=type2.normalText(writer, verticalindex, stschool+uni[i]); + lineindex=lineindex-21; + verticalindex=type2.normalText(writer, verticalindex, stmarks+marks[i]); + lineindex=lineindex-21; + verticalindex=type2.normalText(writer, verticalindex, stpassing+yop[i]); + lineindex=lineindex-21; + i++; + } + type2.underLine(writer, d2, 104, lineindex); + } + + + + if((org[0].length())>1 &&des[0]!=null&&dur[0]!=null) + { + verticalindex=verticalindex-15; + verticalindex=type2.createSubHeader(writer, verticalindex, texp); + lineindex=lineindex-25; + int i=0; + while(i<5 && (org[i].length())>1 && des[i]!=null && dur[i]!=null) + { + verticalindex=type2.normalText(writer, verticalindex,storg+org[i]); + lineindex=lineindex-21; + verticalindex=type2.normalText(writer, verticalindex, stdes+des[i]); + lineindex=lineindex-21; + verticalindex=type2.normalText(writer, verticalindex, stdur+dur[i]); + lineindex=lineindex-21; + i++; + if(verticalindex<5) + { + type2.newPage(d1); + type2.border(writer); + verticalindex=800; + lineindex=-10; + } + } + type2.underLine(writer, d2, 104, lineindex); + } + //closes the document + + if(client[0]!=null && projectdes[0]!=null && dur[0]!=null && role[0]!=null && teamsize[0]!=null) + { + verticalindex=verticalindex-15; + verticalindex=type2.createSubHeader(writer, verticalindex, tproject); + lineindex=lineindex-25; + int i=0; + System.out.println(client[2]); + while((client[i].length())>1 && projectdes[i]!=null && dura[i]!=null && role[i]!=null && teamsize[i]!=null && i<10) + { + verticalindex=type2.normalText(writer, verticalindex,stclient+client[i]); + lineindex=lineindex-19; + System.out.println(client[i]); + verticalindex=type2.normalText(writer, verticalindex, stdesc+projectdes[i]); + lineindex=lineindex-19; + verticalindex=type2.normalText(writer, verticalindex, stdura+dura[i]); + lineindex=lineindex-19; + verticalindex=type2.normalText(writer, verticalindex, strole+role[i]); + lineindex=lineindex-19; + verticalindex=type2.normalText(writer, verticalindex, stteam+teamsize[i]); + lineindex=lineindex-19; + if(verticalindex<5) + { + type1.newPage(d2); + type1.border(writer); + verticalindex=800; + lineindex=-10; + } + i++; + } + } + type2.underLine(writer, d2, 104, lineindex); + + if((train[0].length())>0) + { + verticalindex=verticalindex-15; + verticalindex=type2.createSubHeader(writer, verticalindex, cert); + lineindex=lineindex-25; + int i=0; + while((train[i].length())>1 && i<10) + { + verticalindex=type2.normalText(writer, verticalindex, "*"+train[i]); + lineindex=lineindex-20; + if(verticalindex<5) + { + type2.newPage(d2); + type2.border(writer); + verticalindex=800; + lineindex=-10; + } + i++; + } + } + type2.underLine(writer, d2, 104, lineindex); + if((intr[0].length())>0) + { + verticalindex=verticalindex-10; + verticalindex=type2.createSubHeader(writer, verticalindex, interest); + lineindex=lineindex-25; + int i=0; + while(i<5 && (intr[i].length())>1) + { + verticalindex=type2.normalText(writer, verticalindex,"*"+ intr[i]); + lineindex=lineindex-22; + i++; + if(verticalindex<5) + { + type2.newPage(d2); + type2.border(writer); + verticalindex=800; + lineindex=-10; + } + } + type2.underLine(writer, d2, 104, lineindex); + } + + if((ref.length())>1) + { + verticalindex=verticalindex-10; + verticalindex=type2.createSubHeader(writer, verticalindex, refrences); + lineindex=lineindex-25; + verticalindex=type2.normalText(writer, verticalindex, ref); + lineindex=lineindex-25; + + + type2.underLine(writer, d2, 104, lineindex); + + //closes the document + } + + type2.close(d2); + + } catch (DocumentException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + HttpSession session=request.getSession(); + RequestDispatcher rs=request.getRequestDispatcher("DownloadPage.jsp"); + try { + rs.forward(request,response); + } catch (Exception e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } +} diff --git a/src/Core/Type1.java b/src/Core/Type1.java new file mode 100644 index 0000000..98f6739 --- /dev/null +++ b/src/Core/Type1.java @@ -0,0 +1,125 @@ +package Core; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; + +import com.itextpdf.text.BaseColor; +import com.itextpdf.text.Chunk; +import com.itextpdf.text.Document; +import com.itextpdf.text.DocumentException; +import com.itextpdf.text.Element; +import com.itextpdf.text.Font; +import com.itextpdf.text.FontFactory; +import com.itextpdf.text.Paragraph; +import com.itextpdf.text.Phrase; +import com.itextpdf.text.Font.FontFamily; +import com.itextpdf.text.pdf.BaseFont; +import com.itextpdf.text.pdf.ColumnText; +import com.itextpdf.text.pdf.PdfContentByte; +import com.itextpdf.text.pdf.PdfWriter; +import com.itextpdf.text.pdf.draw.LineSeparator; +public class Type1 +{ + public PdfWriter getWriter(Document document,String s) throws FileNotFoundException, DocumentException + { + PdfWriter writer=PdfWriter.getInstance(document, new FileOutputStream(s)); + document.open(); + return writer; + + } + public void close(Document document) + { + document.close(); + } + public void border(PdfWriter writer) + { + PdfContentByte canvas = writer.getDirectContentUnder(); + canvas.setLineWidth(5); + canvas.setRGBColorFill(255,255,255); + canvas.rectangle(5,5,585,830); + canvas.fillStroke(); + } + public int createHeader(PdfWriter w,int verticalindex,String string,Document d) throws FileNotFoundException, DocumentException + { + int headspace=25; + String f; + PdfWriter writer=w; + Phrase h=new Phrase(); + FontFactory.register("c:/windows/fonts/Cinzel-Bold.ttf", "Cinzel-Bold"); + Font font=FontFactory.getFont("Cinzel-Bold", BaseFont.IDENTITY_H, BaseFont.EMBEDDED, 20); + ColumnText ct=new ColumnText(writer.getDirectContent()); + h.add(new Paragraph(string,font)); + ct.setAlignment(Element.ALIGN_LEFT); + ct.setSimpleColumn(25,0,600,verticalindex+20); + ct.setText(h); + ct.go(); + verticalindex=verticalindex-headspace; + return verticalindex; + } + public void underLine(PdfWriter writer,Document doc,int w,int pos) throws DocumentException + { + PdfContentByte canvas = writer.getDirectContentUnder(); + LineSeparator UNDERLINE1 = new LineSeparator(00,w,BaseColor.BLACK, Element.ALIGN_CENTER,pos); + doc.add(UNDERLINE1); + } + public int normalText(PdfWriter writer,int verticalindex,String string) throws DocumentException + { + int normalspace=20; + Phrase b=new Phrase(); + FontFactory.register("c:/windows/fonts/JosefinSlab-Regular.ttf", "JosefinSlab-Regular"); + Font font=FontFactory.getFont("JosefinSlab-Regular", BaseFont.IDENTITY_H, BaseFont.EMBEDDED,12); + PdfContentByte canvas = writer.getDirectContentUnder(); + ColumnText ct=new ColumnText(writer.getDirectContent()); + b.add(new Paragraph(string,font)); + ct.setAlignment(Element.ALIGN_LEFT); + ct.setSimpleColumn(25,0,600,verticalindex+20); + ct.setText(b); + ct.go(); + verticalindex=verticalindex-normalspace; + return verticalindex; + } + public int createSubHeader(PdfWriter writer,int verticalindex,String string) throws DocumentException + { + int normalspace=21; + Phrase b=new Phrase(); + FontFactory.register("c:/windows/fonts/Cinzel-Regular.ttf", "Cinzel-Regular"); + Font font=FontFactory.getFont("Cinzel-Regular", BaseFont.IDENTITY_H, BaseFont.EMBEDDED,15); + PdfContentByte canvas = writer.getDirectContentUnder(); + ColumnText ct=new ColumnText(writer.getDirectContent()); + b.add(new Paragraph(string,font)); + ct.setAlignment(Element.ALIGN_LEFT); + ct.setSimpleColumn(25,0,600,verticalindex+20); + ct.setText(b); + ct.go(); + verticalindex=verticalindex-normalspace; + return verticalindex; + } + public int paragraphText(PdfWriter writer,int verticalindex,String string) throws DocumentException + { + int normalspace=18; + Phrase intro=new Phrase(); + FontFactory.register("c:/windows/fonts/JosefinSlab-Regular.ttf", "JosefinSlab-Regular"); + Font font=FontFactory.getFont("JosefinSlab-Regular", BaseFont.IDENTITY_H, BaseFont.EMBEDDED,10); + PdfContentByte canvas = writer.getDirectContentUnder(); + ColumnText ct=new ColumnText(writer.getDirectContent()); + intro.add(new Paragraph(string,font)); + ct.setAlignment(Element.ALIGN_LEFT); + ct.setSimpleColumn(25,0,560,verticalindex+20); + ct.setText(intro); + ct.go(); + int l=string.length(); + System.out.println(l); + int i=0; + do + { + verticalindex=verticalindex-normalspace; + i=i+138; + }while(i