Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
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
java-sunac-report
sunac_report
Commits
dcfe1d57
Commit
dcfe1d57
authored
Oct 09, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小bug
parent
3b7577ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ReportToPdfController.java
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
+2
-2
No files found.
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
View file @
dcfe1d57
...
...
@@ -54,8 +54,8 @@ public class ReportToPdfController extends BaseController {
Font
textfont
=
new
Font
(
bfChinese
,
14
,
Font
.
NORMAL
);
//正常文字
Font
urlfont
=
new
Font
(
bfChinese
,
12
,
Font
.
NORMAL
);
//路径文字
//document是创建的文档,FileOutputStream是向文档中输入
//
PdfWriter.getInstance(document, new FileOutputStream(GConstants.FILE_UPLOAD_DIR+"pdf/"+reportEntity.getReportProject()+"_"+reportEntity.getId()+".pdf"));
PdfWriter
.
getInstance
(
document
,
new
FileOutputStream
(
"E:/1.pdf"
));
PdfWriter
.
getInstance
(
document
,
new
FileOutputStream
(
GConstants
.
FILE_UPLOAD_DIR
+
"pdf/"
+
reportEntity
.
getReportProject
()+
"_"
+
reportEntity
.
getId
()+
".pdf"
));
//
PdfWriter.getInstance(document, new FileOutputStream("E:/1.pdf"));
//打开文档
document
.
open
();
Paragraph
pt1
=
new
Paragraph
(
"举报内容"
,
title
);
...
...
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