|
|
|
@ -14,6 +14,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.awt.*;
|
|
|
|
import java.awt.*;
|
|
|
|
import java.io.*;
|
|
|
|
import java.io.*;
|
|
|
|
import java.net.URL;
|
|
|
|
import java.net.URL;
|
|
|
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Iterator;
|
|
|
|
import java.util.Iterator;
|
|
|
|
@ -309,6 +310,7 @@ public class Jpg2PdfUtil {
|
|
|
|
Document document = null;
|
|
|
|
Document document = null;
|
|
|
|
PdfCopy copy = null;
|
|
|
|
PdfCopy copy = null;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
|
|
|
|
filename = URLEncoder.encode(filename, "UTF-8");
|
|
|
|
response.reset();
|
|
|
|
response.reset();
|
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
|
response.setContentType("application/pdf");
|
|
|
|
response.setContentType("application/pdf");
|
|
|
|
|