Comprimi le dimensioni della presentazione PowerPoint usando Java

Read this article to compress the size of a PowerPoint presentation using Java. It covers IDE setup, provides a step-by-step guide, and includes sample code to reduce PPTX file size using Java. You will receive an introduction to additional APIs to further compress the output PPT/PPTX.

Steps to reduce the size of PPTX using Java

  1. Set the IDE to use Aspose.Slides for Java to compress the PPTX size.
  2. Upload the product license and upload the target presentation to be compressed.
  3. Prepare a list of normal slides, layout slides, and master slides.
  4. Iterate through all slides, including the shapes within groups.
  5. Reduce the resolution of each picture to the defined DPI value of 150 and remove its cropped parts.
  6. Convert every non‑JPEG image to JPEG with a quality reduced by 75%.
  7. Keep the converted image only if it is smaller than the original image.
  8. Elimina master e layout slide inutilizzati
  9. Remove unused characters from the embedded fonts of the presentation and save the output file as PPT/PPTX.

Questi passaggi riassumono come ridurre le dimensioni di un file PowerPoint usando Java. Carica la presentazione di origine, prepara un elenco di tutti i tipi di diapositiva, riduci la risoluzione di ogni immagine e elimina le parti ritagliate. Infine, converti ogni immagine non JPEG in un JPEG a bassa qualità e elimina tutte le diapositive master e layout inutilizzate prima di salvare la presentazione.

Code to reduce the size of a PowerPoint file using Java

Questo codice dimostra come comprimere PPT usando Java. È possibile utilizzare livelli di risoluzione predefiniti, comprimere il riempimento delle immagini e eliminare le parti ritagliate di un riempimento immagine senza abbassare la risoluzione. Furthermore, increase the ZIP compression on each save, skip thumbnail updating to preserve the existing preview, and remove unnecessary embedded fonts.

Questo articolo spiega come comprimere una presentazione PowerPoint. To add SmartArt graphics to a slide, see the article Add SmartArt Graphics in PowerPoint using Java.

 Italiano