Class SlidePdfExport

java.lang.Object
com.codename1.presentation.SlidePdfExport

public final class SlidePdfExport extends Object
PDF export: one page per visible slide, at the slide's size in points, drawn by SlideRenderer with a painter over com.codename1.pdf.PdfCanvas. Text is real PDF text laid out with PdfMeasurer and drawn by PdfExport.drawItems, so it is selectable and breaks exactly as a document's does.
  • Method Details

    • toPdf

      public static PdfDocument toPdf(Presentation p)

      The presentation as a PDF document, one page per visible slide, for adding pages or metadata before saving.

      Parameters
      • p: the presentation
      Returns

      the document