Class ServicePdfExport

java.lang.Object
com.serinity.forumcontrol.service.ServicePdfExport

public class ServicePdfExport extends Object
Service to export threads as PDF documents Uses Apache PDFBox library
  • Constructor Details

    • ServicePdfExport

      public ServicePdfExport()
  • Method Details

    • exportThreadToPdf

      public boolean exportThreadToPdf(Thread thread, List<Reply> replies, String outputPath)
      Export a thread to PDF
      Parameters:
      thread - The thread to export
      replies - List of replies (optional, can be null)
      outputPath - Where to save the PDF
      Returns:
      true if successful, false otherwise
    • generateFilename

      public String generateFilename(Thread thread)
      Generate safe filename from thread title