Inserire il piè di pagina in PowerPoint con Java

This quick tutorial explains how to insert the footer in PowerPoint using Java. Copre la configurazione dell’ambiente di sviluppo e fornisce istruzioni passo passo per costruire l’applicazione. Includi anche un esempio di codice pronto all’uso per aggiungere un piè di pagina a PowerPoint in Java. You will receive an introduction to the product’s additional features to improve the sample code and customize headers and footers in the output file PPTX.

  1. Set the IDE to use Aspose.Slides for Java to add headers and footers.
  2. Apply the product license to use the product’s features without any limitation.
  3. Create a new empty presentation that contains a default slide.
  4. Add another slide containing the same layout as the first default slide.
  5. Insert a text box on each slide and create sample automated content on each slide for the demo.
  6. Set the same footer text for all slides in the presentation using the PresentationHeaderFooterManager class.
  7. Set the flags to display the footer and the slide number on each slide.
  8. Set a text box as a header in the slide master to make it visible on all slides.
  9. Salva la presentazione sul disco

These steps describe how to add a footer to PowerPoint in Java. Load the product license, create a new empty presentation or load an existing presentation into memory, add more slides to the presentation if it contains only a single slide, add different text on both slides, access the PresentationHeaderFooterManager object from the presentation and use it to set the footer text, the flags to display the footer, and the slide number on each slide. Poiché non esiste una funzionalità integrata per aggiungere un’intestazione a una presentazione, puoi aggiungere una casella di testo nella parte superiore della diapositiva master per renderla visibile su tutte le diapositive e salvare la presentazione.

This code snippet demonstrates how to add a footer in PowerPoint using Java. Questa API supporta segnaposti di intestazione integrati per impostare le intestazioni nelle note e nei fogli stampati, offre un’opzione per impostare la visualizzazione personalizzata di data/ora nel piè di pagina e consente di nascondere o mostrare il piè di pagina nella diapositiva del titolo, se necessario. It is also possible to show the footer only on selected slides and assign a name and alternative text to the header text box to make it more accessible.

Questo articolo aiuta con i piè di pagina di PowerPoint. To add transitions to PowerPoint, see the article Add transitions to PowerPoint in Java.

 Italiano