// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java // The path to the documents directory. String dataDir = Utils.getDataDir(RenderResourceUsageandsheetView.class); // Read the source Project Project project = new Project(dataDir + "RenderMe.mpp"); // Define the SaveOptions with required TimeScale settings as Days SaveOptions options = new PdfSaveOptions(); options.setTimescale(Timescale.Days); // Set the Presentation format to ResourceUsage options.setPresentationFormat(PresentationFormat.ResourceUsage); String days = "result_days.pdf"; project.save(days, options); // Set the Tiemscale settings to ThirdsOfMonths options.setTimescale(Timescale.ThirdsOfMonths); String thirds = "result_thirdsOfMonths.pdf"; project.save(thirds, options); // Set the Timescale settings to Months options.setTimescale(Timescale.Months); String months = "result_months.pdf"; // Save the project project.save(months, options);