Class PdfboxGraphicsEncoder

java.lang.Object
org.knowm.xchart.PdfboxGraphicsEncoder

public class PdfboxGraphicsEncoder extends Object
A helper class with static methods for saving Charts as a PDF file
  • Method Details

    • savePdfboxGraphics

      public static void savePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, String fileName) throws IOException
      Write a chart to a file
      Parameters:
      chart - Chart
      fileName - file name path
      Throws:
      IOException
    • savePdfboxGraphics

      public static void savePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, File file) throws IOException
      Write a chart to a file
      Parameters:
      chart - Chart
      file - File
      Throws:
      IOException
    • savePdfboxGraphics

      public static void savePdfboxGraphics(org.knowm.xchart.internal.chartpart.Chart chart, OutputStream os) throws IOException
      Write a chart to an OutputStream
      Parameters:
      chart - Chart
      os - OutputStream
      Throws:
      IOException
    • savePdfboxGraphics

      public static void savePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, String fileName) throws IOException
      Write multiple charts to a file
      Parameters:
      charts - List<? extends Chart>
      fileName - file name path
      Throws:
      IOException
    • savePdfboxGraphics

      public static void savePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, File file) throws IOException
      Write multiple charts to a file
      Parameters:
      charts - List<? extends Chart>
      file - File
      Throws:
      IOException
    • savePdfboxGraphics

      public static void savePdfboxGraphics(List<? extends org.knowm.xchart.internal.chartpart.Chart> charts, OutputStream os) throws IOException
      Write multiple charts to an OutputStream
      Parameters:
      charts - List<? extends Chart>
      os - OutputStream
      Throws:
      IOException