Saving a Project as PDF in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Saving a Project as PDF
To Save a Project as PDF using Aspose.Tasks Java for PHP, simply invoke SaveProjectAsPdf module. Here you can see example code.
PHP Code
1$project = new Project('test_tasks.mpp');
2
3$options = new PdfSaveOptions();
4
5$timescale = new Timescale();
6
7$presentationFormat = new PresentationFormat();
8
9$options->setFitContent(true);
10
11$options->setTimescale($timescale->Months);
12
13$options->setPresentationFormat($presentationFormat->TaskUsage);
14
15$options->setLegendOnEachPage(false);
16
17$project->save("project.pdf", $options);
18
19print "Saved project as pdf, please check the output file.";
Download Running Code
Download Saving a Project as PDF (Aspose.Tasks) from any of the below mentioned social coding sites: