Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
trismegisto-planilla
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luis Gangas
trismegisto-planilla
Commits
5dc05104
Commit
5dc05104
authored
Nov 30, 2018
by
Luis Gangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] rotate A4
parent
f4876304
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
PdfCreator.java
src/java/trismegistoplanilla/utilities/PdfCreator.java
+2
-2
No files found.
src/java/trismegistoplanilla/utilities/PdfCreator.java
View file @
5dc05104
...
...
@@ -56,7 +56,7 @@ public class PdfCreator {
public
boolean
crearPdfContratoNecesidadMercado
(
JSONObject
json
,
HttpServletResponse
response
)
throws
IOException
,
DocumentException
{
// public static boolean crearPdfContratoNecesidadMercado(JSONObject json) throws IOException, DocumentException {
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
.
getInstance
(
documento
,
response
.
getOutputStream
());
// MyFooter event = new MyFooter();
...
...
@@ -126,7 +126,7 @@ public class PdfCreator {
public
static
boolean
crearPdfContratoTiempoParcial
(
JSONObject
json
,
HttpServletResponse
response
)
throws
IOException
,
DocumentException
{
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.getInstance(documento, new FileOutputStream("D:\\contratoPDF.pdf"));
PdfWriter
.
getInstance
(
documento
,
response
.
getOutputStream
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment