작업 목록과 바닥 글 사이의 간격을 제거합니다

프로젝트 데이터를 다른 형식으로 변환하면 프로젝트의 작업 목록과 바닥 글 사이의 공간으로 이어질 수 있습니다. ReduceFooterGap 속성을 사용하면 작업 목록과 문서 바닥 글 사이의 추가 간격이 제거됩니다.

작업 목록과 문서 바닥 글 사이의 간격 제거

 1String dataDir = Utils.getDataDir(SaveAsPdf.class);
 2
 3//Read the MPP file.
 4Project project = new Project(dataDir + "Homemoveplan.mpp");
 5
 6//Use ReduceFooterGap property to reduce the gap between list of tasks and Footer
 7ImageSaveOptions imageSaveOptions =  new ImageSaveOptions(SaveFileFormat.PNG);
 8imageSaveOptions.setReduceFooterGap(true);
 9imageSaveOptions.setSaveToSeparateFiles(true);
10imageSaveOptions.setPageSize(PageSize.A0);
11imageSaveOptions.setTimescale(Timescale.Days);
12project.save(dataDir + "ReducingGapBetweenTasksListAndFooter_out.png", (SaveOptions)imageSaveOptions);
13
14PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
15pdfSaveOptions.setReduceFooterGap(true);
16pdfSaveOptions.setSaveToSeparateFiles(true);
17pdfSaveOptions.setPageSize(PageSize.A0);
18pdfSaveOptions.setTimescale(Timescale.Days);
19project.save(dataDir + "ReducingGapBetweenTasksListAndFooter_out.pdf", (SaveOptions)pdfSaveOptions);
20
21HtmlSaveOptions htmlSaveOptions = new HtmlSaveOptions();
22htmlSaveOptions.setReduceFooterGap(true); // set to true
23htmlSaveOptions.setIncludeProjectNameInPageHeader(false);
24htmlSaveOptions.setIncludeProjectNameInTitle(false);
25htmlSaveOptions.setPageSize(PageSize.A0);
26htmlSaveOptions.setTimescale(Timescale.Days);
27project.save(dataDir + "ReducingGapBetweenTasksListAndFooter_out.html", htmlSaveOptions);
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.