Skip to content

Commit 024ec4a

Browse files
[update] forcing pdf content type for response
1 parent 4a4f339 commit 024ec4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WEB-INF/src/com/dhtmlx/scheduler/PDFWriter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ private void printWatermark() throws Exception {
223223
}
224224

225225
private void createPDF(double[] orientation) throws Exception {
226+
this.resp.setContentType("application/pdf");
226227
this.pdf = new PDF(this.resp.getOutputStream());
227228

228229
this.f1 = new Font(pdf, "Helvetica");

0 commit comments

Comments
 (0)