Commit 5dc05104 by Luis Gangas

[EDIT] rotate A4

parent f4876304
...@@ -56,7 +56,7 @@ public class PdfCreator { ...@@ -56,7 +56,7 @@ public class PdfCreator {
public boolean crearPdfContratoNecesidadMercado(JSONObject json, HttpServletResponse response) throws IOException, DocumentException { public boolean crearPdfContratoNecesidadMercado(JSONObject json, HttpServletResponse response) throws IOException, DocumentException {
// public static boolean crearPdfContratoNecesidadMercado(JSONObject json) throws IOException, DocumentException { // public static boolean crearPdfContratoNecesidadMercado(JSONObject json) throws IOException, DocumentException {
boolean respuesta = false; boolean respuesta = false;
Document documento = new Document(PageSize.A4.rotate(), 100, 100, 30, 30); Document documento = new Document(PageSize.A4, 100, 100, 30, 30);
// PdfWriter writer = PdfWriter.getInstance(documento, response.getOutputStream()); // PdfWriter writer = PdfWriter.getInstance(documento, response.getOutputStream());
PdfWriter.getInstance(documento, response.getOutputStream()); PdfWriter.getInstance(documento, response.getOutputStream());
// MyFooter event = new MyFooter(); // MyFooter event = new MyFooter();
...@@ -126,7 +126,7 @@ public class PdfCreator { ...@@ -126,7 +126,7 @@ public class PdfCreator {
public static boolean crearPdfContratoTiempoParcial(JSONObject json, HttpServletResponse response) throws IOException, DocumentException { public static boolean crearPdfContratoTiempoParcial(JSONObject json, HttpServletResponse response) throws IOException, DocumentException {
boolean respuesta = false; boolean respuesta = false;
Document documento = new Document(PageSize.A4.rotate(), 100, 100, 30, 30); Document documento = new Document(PageSize.A4, 100, 100, 30, 30);
// PdfWriter writer = PdfWriter.getInstance(documento, response.getOutputStream()); // PdfWriter writer = PdfWriter.getInstance(documento, response.getOutputStream());
// PdfWriter.getInstance(documento, new FileOutputStream("D:\\contratoPDF.pdf")); // PdfWriter.getInstance(documento, new FileOutputStream("D:\\contratoPDF.pdf"));
PdfWriter.getInstance(documento, response.getOutputStream()); PdfWriter.getInstance(documento, response.getOutputStream());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment