Calling the PDF Chart Creator Dynamic Link Libray from a LabVIEW VI

Note: For detailed information about function usage, parameter and return values please refer to the manual.

To use the PDFChart.dll with LabVIEW requires the use of the Call Library Function Node. This should be added and configured in your VI with the following common function node settings:

Library name or path: PDFChart.dll
Calling conventions: C
Function: Run in UI Thread

Each individual function should then have the additional configuration applied to the Call Library Function Node as specified below:

Required APIs
 PDFC_License
 PDFC_Chart
 PDFC_Page
 PDFC_PageName
 PDFC_DataSet
 PDFC_DataSeparator
 PDFC_DataSort
 PDFC_MakePDF

Area Chart APIs
 PDFC_AreaDatum
 PDFC_Area

Line Chart APIs
 PDFC_LineDatum
 PDFC_Line
 PDFC_LineMarker

Bar Chart APIs
 PDFC_BarDatum
 PDFC_BarColor
 PDFC_BarSpacing
 PDFC_BarSize
 PDFC_BarLabel
 PDFC_BarBorder

Axes and Labels APIs
 PDFC_ChartBackground
 PDFC_ChartHeading
 PDFC_HeadingTitle
 PDFC_HeadingSubTitle
 PDFC_AxesLabelX
 PDFC_AxesLabelY
 PDFC_AxesCaptionX
 PDFC_AxesCaptionY
 PDFC_AxesLine
 PDFC_AxesScale
 PDFC_AxesDivisions
 PDFC_DecimalPoints
 PDFC_AxesGridLineStyle
 PDFC_AxesGridLine
 PDFC_AxesLabelYPosition
 PDFC_AxesLabelSpacing

Pie Chart APIs
 PDFC_PieDatum
 PDFC_PieColor
 PDFC_PieOutline
 PDFC_PiePageMargin
 PDFC_PieLabel

Legends APIs
 PDFC_Legend

Numerical Analyses APIs
 PDFC_LineOfBestFit
 PDFC_MovingAverageLine
 PDFC_MovingAverageLineMarker

Miscellaneous APIs
 PDFC_Log
 PDFC_Reset

PDF Meta Information APIs
 PDFC_SetAuthor
 PDFC_SetCreator
 PDFC_SetProducer
 PDFC_SetTitle
 PDFC_SetSubject
 PDFC_SetKeywords
 PDFC_SetCreationDate

PDF Settings APIs
 PDFC_SetOwnerPassword
 PDFC_SetUserPassword
 PDFC_SetPermissions
 PDFC_SetPermissionEdit
 PDFC_SetPermissionEditExtra
 PDFC_SetPermissionCopy
 PDFC_SetPermissionPrint

PDF Viewer Preferences APIs
 PDFC_SetViewerPreferenceCenterWindow
 PDFC_SetViewerPreferenceHideToolbar
 PDFC_SetViewerPreferenceHideMenubar
 PDFC_SetViewerPreferenceHideWindowUI
 PDFC_SetViewerPreferenceFitWindow
 PDFC_SetPageModeNone
 PDFC_SetPageModeOutlines
 PDFC_SetPageModeUseThumbs
 PDFC_SetPageModeFullScreen
 PDFC_SetPageLayoutSinglePage
 PDFC_SetPageLayoutOneColumn
 PDFC_SetPageLayoutTwoColumnLeft
 PDFC_SetPageLayoutTwoColumnRight



Required APIs

PDFC_License
ParameterType Data Type Pass
return type void - -
code String C String Pointer Value


PDFC_Chart
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
type Numeric Unsigned 32-bit IntegerValue


PDFC_Page
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
width Numeric Unsigned 32-bit IntegerValue
height Numeric Unsigned 32-bit IntegerValue
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value


PDFC_PageName
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
page name String C String Pointer Value
landscape Numeric Unsigned 32-bit IntegerValue
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value


PDFC_DataSet
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
filename String C String Pointer Value


PDFC_DataSeparator
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
separator String C String Pointer Value


PDFC_DataSort
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
field Numeric Unsigned 32-bit IntegerValue
sort order Numeric Unsigned 32-bit IntegerValue


PDFC_MakePDF
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
output String C String Pointer Value
options Numeric Unsigned 32-bit IntegerValue
errorText String C String Pointer Value
errorMaxLen Numeric Unsigned 32-bit IntegerValue

Back to top

Area Chart APIs

PDFC_AreaDatum
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
label String C String Pointer Value
value Numeric Double Value


PDFC_Area
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
lineRed Numeric Double Value
lineGreen Numeric Double Value
lineBlue Numeric Double Value
lineThickness Numeric Double Value
fillRed Numeric Double Value
fillGreen Numeric Double Value
fillBlue Numeric Double Value


Back to top

Line Chart APIs

PDFC_LineDatum
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
label String C String Pointer Value
value Numeric Double Value


PDFC_Line
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
lineRed Numeric Double Value
lineGreen Numeric Double Value
lineBlue Numeric Double Value
lineThickness Numeric Double Value


PDFC_LineMarker
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
markerRed Numeric Double Value
markerGreen Numeric Double Value
markerBlue Numeric Double Value
markerSize Numeric Double Value
markerStyle Numeric Unsigned 32-bit IntegerValue
outlineThickness Numeric Double Value


Back to top

Bar Chart APIs

PDFC_BarDatum
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
label String C String Pointer Value
value Numeric Double Value


PDFC_BarColor
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
from red Numeric Double Value
from green Numeric Double Value
from blue Numeric Double Value
to red Numeric Double Value
to green Numeric Double Value
to blue Numeric Double Value


PDFC_BarSpacing
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
spacing Numeric Unsigned 32-bit Integer Value


PDFC_BarSize
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit Integer Value


PDFC_BarLabel
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
position Numeric Unsigned 32-bit IntegerValue
format String C String Pointer Value


PDFC_BarBorder
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
width Numeric Double Value
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value


Back to top

Axes and Labels APIs

PDFC_ChartBackground
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
from red Numeric Double Value
from green Numeric Double Value
from blue Numeric Double Value
to red Numeric Double Value
to green Numeric Double Value
to blue Numeric Double Value


PDFC_ChartHeading
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
vertical alignment Numeric Unsigned 32-bit IntegerValue
horizontal alignmentNumeric Unsigned 32-bit IntegerValue


PDFC_HeadingTitle
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value


PDFC_HeadingSubTitle
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value


PDFC_AxesLabelX
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value


PDFC_AxesLabelY
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value


PDFC_AxesCaptionX
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value


PDFC_AxesCaptionY
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value


PDFC_AxesLine
ParameterType Data Type Pass
return type void - -
width Numeric Unsigned 32-bit IntegerValue
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value
format Numeric Unsigned 32-bit IntegerValue


PDFC_AxesScale
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
scale Numeric Unsigned 32-bit IntegerValue
value 1 Numeric Double Value
value 2 Numeric Double Value


PDFC_AxesDivisions
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
divisions Numeric Unsigned 32-bit IntegerValue


PDFC_DecimalPoints
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
points Numeric Unsigned 32-bit IntegerValue


PDFC_AxesGridLineStyle
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
dash Numeric Unsigned 32-bit IntegerValue
gap Numeric Unsigned 32-bit IntegerValue
offset Numeric Unsigned 32-bit IntegerValue


PDFC_AxesGridLine
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
width Numeric Unsigned 32-bit IntegerValue
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value


PDFC_AxesLabelYPosition
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
position Numeric Unsigned 32-bit IntegerValue


PDFC_AxesLabelSpacing
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
nth Numeric Unsigned 32-bit IntegerValue

Back to top

Pie Chart APIs

PDFC_PieDatum
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
label String C String Pointer Value
value Numeric Double Value


PDFC_PieColor
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value


PDFC_PieOutline
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
border width Numeric Double Value
red Numeric Double Value
green Numeric Double Value
blue Numeric Double Value


PDFC_PiePageMargin
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
margin size Numeric Double Value


PDFC_PieLabel
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
label position Numeric Unsigned 32-bit IntegerValue
format String C String Pointer Value
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value

Back to top

Legend APIs

PDFC_Legend
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
legendPosition Numeric Unsigned 32-bit IntegerValue
format String C String Pointer Value
outline red Numeric Double Value
outline green Numeric Double Value
outline blue Numeric Double Value
outline width Numeric Double Value
background red Numeric Double Value
background green Numeric Double Value
background blue Numeric Double Value
size Numeric Unsigned 32-bit IntegerValue
font id Numeric Unsigned 32-bit IntegerValue
fill red Numeric Double Value
fill green Numeric Double Value
fill blue Numeric Double Value
style Numeric Unsigned 32-bit IntegerValue
other red Numeric Double Value
other green Numeric Double Value
other blue Numeric Double Value

Back to top

Numerical Analyses APIs

PDFC_LineOfBestFit
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
line red Numeric Double Value
line green Numeric Double Value
line blue Numeric Double Value
line thickness Numeric Double Value


PDFC_MovingAverageLine
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
sample points Numeric Unsigned 32-bit IntegerValue
line red Numeric Double Value
line green Numeric Double Value
line blue Numeric Double Value
line thickness Numeric Double Value


PDFC_MovingAverageLineMarker
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
marker style Numeric Unsigned 32-bit IntegerValue
marker red Numeric Double Value
marker green Numeric Double Value
marker blue Numeric Double Value
marker size Numeric Double Value
outline thickness Numeric Double Value

Back to top

Miscellaneous APIs

PDFC_Log
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
logFilename String C String Pointer Value
logLevel Numeric Unsigned 32-bit IntegerValue


PDFC_Reset
ParameterType Data Type Pass
return type void - -

Back to top

PDF Meta Information APIs

PDFC_SetAuthor
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
author String C String Pointer Value


PDFC_SetCreator
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
creator String C String Pointer Value


PDFC_SetProducer
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
producer String C String Pointer Value


PDFC_SetTitle
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
title String C String Pointer Value


PDFC_SetSubject
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
subject String C String Pointer Value


PDFC_SetKeywords
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
keywords String C String Pointer Value


PDFC_SetCreationDate
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue

Back to top

PDF Settings APIs

PDFC_SetOwnerPassword
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
password String C String Pointer Value


PDFC_SetUserPassword
ParameterType Data Type Pass
return type Numeric Unsigned 32-bit IntegerValue
password String C String Pointer Value


PDFC_SetPermissionEdit
ParameterType Data Type Pass
return type void - -


PDFC_SetPermissionEditExtra
ParameterType Data Type Pass
return type void - -


PDFC_SetPermissionCopy
ParameterType Data Type Pass
return type void - -


PDFC_SetPermissionPrint
ParameterType Data Type Pass
return type void - -

Back to top

PDF Viewer Preferences APIs

PDFC_SetViewerPreferenceCenterWindow
ParameterType Data Type Pass
return type void - -


PDFC_SetViewerPreferenceHideToolbar
ParameterType Data Type Pass
return type void - -


PDFC_SetViewerPreferenceHideMenubar
ParameterType Data Type Pass
return type void - -


PDFC_SetViewerPreferenceHideWindowUI
ParameterType Data Type Pass
return type void - -


PDFC_SetViewerPreferenceFitWindow
ParameterType Data Type Pass
return type void - -


PDFC_SetPageModeNone
ParameterType Data Type Pass
return type void - -


PDFC_SetPageModeOutlines
ParameterType Data Type Pass
return type void - -


PDFC_SetPageModeUseThumbs
ParameterType Data Type Pass
return type void - -


PDFC_SetPageModeFullScreen
ParameterType Data Type Pass
return type void - -


PDFC_SetPageLayoutSinglePage
ParameterType Data Type Pass
return type void - -


PDFC_SetPageLayoutOneColumn
ParameterType Data Type Pass
return type void - -


PDFC_SetPageLayoutTwoColumnLeft
ParameterType Data Type Pass
return type void - -


PDFC_SetPageLayoutTwoColumnRight
ParameterType Data Type Pass
return type void - -

Back to top