C# Class NSoft.NFramework.FusionCharts.PDFGenerator

FusionCharts Exporter - 'PDF Resource' handles FusionCharts (since v3.1) Server Side Export feature that helps FusionCharts exported as PDF file.
显示文件 Open project: debop/NFramework

Public Methods

Method Description
PDFGenerator ( string imageData_FCFormat, string width, string height, string bgcolor ) : System.Collections

Generates a PDF file with the given parameters The imageData_FCFormat parameter is the FusionCharts export format data width, height are the respective width and height of the original image bgcolor determines the default background colour

getBinaryStream ( string strFormat ) : MemoryStream

Gets the binary data stream of the image The passed parameter determines the file format of the image to be exported

Private Methods

Method Description
addImageToPDF ( ) : byte[]
addImageToPDF ( int id ) : byte[]
addImageToPDF ( int id, bool isCompressed ) : byte[]
calculateXPos ( int posn ) : string
getBitmapData24 ( ) : byte[]
getBitmapData24 ( int id, bool isCompressed ) : byte[]
getMeta ( string metaName ) : string
getMeta ( string metaName, int id ) : string
getPDFObjects ( ) : byte[]
getPDFObjects ( bool isCompressed ) : byte[]
getTrailer ( int xrefpos ) : string
getTrailer ( int xrefpos, int numxref ) : string
getXObjResource ( ) : string
getXObjResource ( int itr ) : string
hexToBytes ( string strHex ) : byte[]
setBitmapData ( string imageData_FCFormat, string width, string height, string bgcolor ) : void

Generates bitmap data for the image from a FusionCharts export format the height and width of the original export needs to be specified the default background color should also be specified

stringToBytes ( string str ) : byte[]

Method Details

PDFGenerator() public method

Generates a PDF file with the given parameters The imageData_FCFormat parameter is the FusionCharts export format data width, height are the respective width and height of the original image bgcolor determines the default background colour
public PDFGenerator ( string imageData_FCFormat, string width, string height, string bgcolor ) : System.Collections
imageData_FCFormat string
width string
height string
bgcolor string
return System.Collections

getBinaryStream() public method

Gets the binary data stream of the image The passed parameter determines the file format of the image to be exported
public getBinaryStream ( string strFormat ) : MemoryStream
strFormat string
return System.IO.MemoryStream