Package com.aspose.slides

Examples of com.aspose.slides.Presentation.save()


   
    //Add Smart Art Shape
    ISmartArt smart = slide.getShapes().addSmartArt(0, 0, 400, 400, SmartArtLayoutType.BasicBlockList);
   
    //Saving presentation
    pres.save("data/AsposeSmartArt.pptx", SaveFormat.Pptx);
         
    //=====================
    //Accessing Smart Art
    //=====================
    //Get first slide
View Full Code Here


    //Clone the desired slide to the end of the collection of slides in the same PPTX
    ISlideCollection slds = pres.getSlides();
    slds.addClone(pres.getSlides().get_Item(0));

//Write the modified pptx to disk
pres.save("data/AsposeClone.pptx", SaveFormat.Pptx);

        //Printing the status
        System.out.println("Slide cloned successfully!");
  }
}
View Full Code Here

    //Setting Password
    pres.getProtectionManager().encrypt("pass");

    //Save your presentation to a file
    pres.save("data/AsposeProtection-PropAccess.pptx", com.aspose.slides.SaveFormat.Pptx);
   
      //Printing the status
      System.out.println("Protection Applied successfully!");
  }
}
View Full Code Here

    //Clone the desired slide to the specified index in the same presentation
    slds.insertClone(2, pres.getSlides().get_Item(1));

    //Write the modified presentation to disk
    pres.save("data/AsposeCloneToPosition.pptx", SaveFormat.Pptx);
  }
}
View Full Code Here

        }
      }
    }

    // Save Presentation
    pres.save("data/AsposeRemoveSmartArtNode.pptx", SaveFormat.Pptx);

    //============================================
    // Removing Smart Art from Specific Location
    //============================================
       
View Full Code Here

    //Setting Password
    pres.getProtectionManager().encrypt("pass");

    //Save your presentation to a file
    pres.save("data/AsposeProtection.pptx", com.aspose.slides.SaveFormat.Pptx);
     
      //Printing the status
      System.out.println("Protection Applied successfully!");
  }
}
View Full Code Here

          }
        }
      }
    }
    // Save Presentation
    pres1.save("data/AsposeRemoveSmartArtNodeByPosition.pptx",  SaveFormat.Pptx);
    System.out.println("Smart Art removed.");
  }
}
View Full Code Here

        newNode.getTextFrame().setText("New Node Added");
      }
    }

    // Saving Presentation
    pres.save("data/AsposeAddSmartArtNode.pptx", SaveFormat.Pptx);
   
    //=========================================
    // Adding Smart Art to Specific Location
    //=========================================
   
View Full Code Here

                                                                                                              
      //Add Text                                                                                              
      chNode.getTextFrame().setText("Sample Text Added");                                                     
                                                                                                              
      //Save Presentation                                                                                     
      pres1.save("data/AsposeAddSmartArtNodeByPosition.pptx", SaveFormat.Pptx);
      System.out.println("Smart Art added and to specific location.");
  }
}
View Full Code Here

    shadow.setDistance(3);
    shadow.setRectangleAlign(RectangleAlignment.TopLeft);
    shadow.getShadowColor().setPresetColor(PresetColor.Black);

    // Write the presentation to disk
    pres.save("data/AsposeTextShadow.pptx", SaveFormat.Pptx);
    System.out.println("Done");
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.