Saving a Project as PDF in PHP
Contents
[
Hide
]
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
$project = new Project('test_tasks.mpp');
$options = new PdfSaveOptions();
$timescale = new Timescale();
$presentationFormat = new PresentationFormat();
$options->setFitContent(true);
$options->setTimescale($timescale->Months);
$options->setPresentationFormat($presentationFormat->TaskUsage);
$options->setLegendOnEachPage(false);
$project->save("project.pdf", $options);
print "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: