While attempting to open an MPP file in Tasks version 19.5 the process appears to hang indefinably on the save method:
PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.setFitContent(true);
doc.save(out, saveOptions);
By removing the setFitContent from the options it works with more files, however is still causes an issue for some files.
Is the some factor that determine this, or is there a way to stop the save to avoid issues?
@rcpeate ,
Can you please share source file so that we may further investigate to help you out.
rcpeate
October 30, 2019, 12:37pm
3
You should be able to reproduce the issue with:
Project doc = new Project(new FileInputStream(new File("test.mpp"))), new LoadOptions());
PdfSaveOptions saveOps = new PdfSaveOptions();
saveOps.setFitContent(true);
doc.save(new FileOutputStream(new File("tmp.pdf"), saveOps);
And the file from here: https://ablesim.com/wp-content/uploads/2016/06/35-levels.mpp
@rcpeate ,
I have worked with source file and sample code and have been able to observe the issue. A ticket with ID TASKSJAVA-998 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be addressed.