Platforms to show: All Mac Windows Linux Cross-Platform

CDMultiPagePDFMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class ChartDirector MBS ChartDirector Plugin 21.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The MultiPagePDF class is a utility class used to create PDF documents with multiple pages.
Example
// put two charts on two pages of one PDF file
Var data() As Double = Array(5.0, 8.0, 6.0, 9.0, 7.0)

Var line As New CDXYChartMBS(500, 300)
Call line.setPlotArea(50, 20, 420, 240)
Call line.addLineLayer(data, &h0066CC)

Var bars As New CDXYChartMBS(500, 300)
Call bars.setPlotArea(50, 20, 420, 240)
Call bars.addBarLayer(data, &hFF6600)

Var pdf As New CDMultiPagePDFMBS
pdf.addPage line
pdf.addPage bars
If pdf.outPDF(SpecialFolder.Desktop.Child("charts.pdf")) Then MessageBox "PDF written."

MultiPagePDF works by generating a PDF page for CDBaseChartMBS or CDDrawAreaMBS added to it. The CDBaseChartMBS can be a CDMultiChartMBS, and can contain free form CDML text, tables, shape and images. In this way, CDMultiPagePDFMBS can create complete PDF reports.

This class has no subclasses.

Blog Entries

Release notes

Some related classes:


The items on this page are in the following plugins: MBS ChartDirector Plugin.


CDMultiChartMBS   -   CDNotInitialzedExceptionMBS


The biggest plugin in space...