Generated PDF has a green background

Using aspose.slides-15.1.0-jdk16.jar I generated the attached pdf file from the attached pptx file. The slides in the pptx file have a white background. The generated slides in the pdf file have a green background. How do I make the generated pdf slides have the same color as the original pptx slides?


Here is the code snippet:

protected void saveAsPdf( AssetTypeBean assetType, File pptFile, String fn ) throws Exception {
PerformanceMonitor.start( PerformanceMonitor.DOC_CONV_CATEGORY, “PPT saveAsPdf” );

Presentation ppt = null;
try {
int maxPages = SystemConfig.getIntegerProperty( “MaxPdfPages”, 200 );
ppt = new Presentation( pptFile.getAbsolutePath() );
int numSlides = ppt.getSlides().size();
if ( numSlides > maxPages ) {
l4j.debug( “The power point document has " + numSlides + " slides, truncating the PDF part to "
+ maxPages + " pages.” );
// Strange!
int[] slidePositions = new int[maxPages];
for ( int pos = 0; pos < maxPages; ++pos ) {
slidePositions[pos] = pos + 1;
}
ppt.save( fn, slidePositions, SaveFormat.Pdf );
} else {
l4j.debug( “The power point document has " + numSlides
+ " slides, the PDF part will contain the entire document.” );
ppt.save( fn, SaveFormat.Pdf );
}
} finally {
try {
if ( ppt != null ) {
// Releases all resources used by this Aspose.Slides.Pptx.PrentationEx object
ppt.dispose();
}
} catch ( Throwable t ) {
// ignore.
}
PerformanceMonitor.stop( PerformanceMonitor.DOC_CONV_CATEGORY, “PPT saveAsPdf” );
}
}

Hi Bob,

I have worked with the presentation file shared b you and have been able to observe the issue specified. An issue with ID SLIDESJAVA-34759 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 automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESJAVA-34759) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Thank you this has fixed the problem.