Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.0 | Yes | Yes | Yes | Yes | All |
Notes:
See dynapdf_help.pdf manual for details.
If the function succeeds the return value is true. If the function fails the return value is false.
See also SetOCGContUsage function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 15.0 | Yes | Yes | Yes | Yes | All |
Notes:
If the parameter SaveState is true, the new state is also saved in the PDF file. Otherwise, the state is only changed temporarily so that the whished state can be rendered with RenderPage or RenderPageToImage for example.
Note that only the new state of the current OCG will be be saved. If the state of other OCGs were changed beforehand, while SaveState was set to false, then these changes will not be considered.
If the function succeeds the return value is true. If the function fails the return value is false.
See also SetOCGState function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetOpacity function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetOrientation function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetOrientationEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: Value can be kpcTopDown or kpcBottomUp. Default is kpcBottomUp.
See also SetPageCoords function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes:
Common paper formats and sizes in points:
Format | Size in units (Width x Height) |
DIN A3 | 842.0 x 1191.0 |
DIN A4 | 595.0 x 842.0 |
DIN A5 | 419.0 x 595.0 |
DIN B4 | 709.0 x 1001.0 |
DIN B5 | 499.0 x 709.0 |
DIN B6 | 354.0 x 499.0 |
DIN C3 | 918.0 x 1298.0 |
DIN C4 | 649.0 x 918.0 |
DIN C5 | 459.0 x 649.0 |
DIN C6 | 323.0 x 459.0 |
DIN C65 | 323.0 x 649.0 |
DIN DL | 312.0 x 624.0 |
DIN E4 | 623.0 x 879.0 |
DIN E5 | 439.0 x 624.0 |
DIN E6 | 312.0 x 439.0 |
DIN E65 | 312.0 x 624.0 |
DIN M5 | 439.0 x 632.0 |
DIN M65 | 317.0 x 632.0 |
US Legal | 612.0 x 1008.0 |
US Letter | 612.0 x 792.0 |
See also SetPageFormat function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
dim dWidth as Double = 800 // new width
dim dHeight as Double = 600 // new heihht
// define page size
bBool=pdf.SetPageWidth(dWidth)
bBool=pdf.SetPageHeight(dHeight)
Common paper formats and sizes in points:
Format | Size in units (Width x Height) |
DIN A3 | 842.0 x 1191.0 |
DIN A4 | 595.0 x 842.0 |
DIN A5 | 419.0 x 595.0 |
DIN B4 | 709.0 x 1001.0 |
DIN B5 | 499.0 x 709.0 |
DIN B6 | 354.0 x 499.0 |
DIN C3 | 918.0 x 1298.0 |
DIN C4 | 649.0 x 918.0 |
DIN C5 | 459.0 x 649.0 |
DIN C6 | 323.0 x 459.0 |
DIN C65 | 323.0 x 649.0 |
DIN DL | 312.0 x 624.0 |
DIN E4 | 623.0 x 879.0 |
DIN E5 | 439.0 x 624.0 |
DIN E6 | 312.0 x 439.0 |
DIN E65 | 312.0 x 624.0 |
DIN M5 | 439.0 x 632.0 |
DIN M65 | 317.0 x 632.0 |
US Legal | 612.0 x 1008.0 |
US Letter | 612.0 x 792.0 |
See also SetPageHeight function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
// define page view
'plSinglePage = 0, // Show one page at time
'plOneColumn = 1, // Show the pages continous
'plTwoColumnLeft = 2, // Two columns, start with left column
'plTwoColumnRight = 3 // Two columns, start with right column
bBool=pdf.SetPageLayout(0)
See also SetPageLayout function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
// define page mode
'pmUseNone = 0, // Default
'pmUseOutlines = 1, // Show the outline tree
'pmUseThumbs = 2, // Show the thumb nails
'pmFullScreen = 3 // Open the document in full-screen mode
bBool=pdf.SetPageMode(0)
See also SetPageMode function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
dim dWidth as Double = 800 // new width
dim dHeight as Double = 600 // new heihht
// define page size
bBool=pdf.SetPageWidth(dWidth)
bBool=pdf.SetPageHeight(dHeight)
Common paper formats and sizes in points:
Format | Size in units (Width x Height) |
DIN A3 | 842.0 x 1191.0 |
DIN A4 | 595.0 x 842.0 |
DIN A5 | 419.0 x 595.0 |
DIN B4 | 709.0 x 1001.0 |
DIN B5 | 499.0 x 709.0 |
DIN B6 | 354.0 x 499.0 |
DIN C3 | 918.0 x 1298.0 |
DIN C4 | 649.0 x 918.0 |
DIN C5 | 459.0 x 649.0 |
DIN C6 | 323.0 x 459.0 |
DIN C65 | 323.0 x 649.0 |
DIN DL | 312.0 x 624.0 |
DIN E4 | 623.0 x 879.0 |
DIN E5 | 439.0 x 624.0 |
DIN E6 | 312.0 x 439.0 |
DIN E65 | 312.0 x 624.0 |
DIN M5 | 439.0 x 632.0 |
DIN M65 | 317.0 x 632.0 |
US Legal | 612.0 x 1008.0 |
US Letter | 612.0 x 792.0 |
See also SetPageWidth function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
const pvPDF_1_3=3
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
// ask to create a pdf in version 1.3
bBool=pdf.SetPDFVersion(DynaPDFMBS.kpvPDFA_2005)
See also SetPDFVersion function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.7 | Yes | Yes | Yes | Yes | All |
Notes:
This is a PDF 1.7 extension.
For the Mode use the kdpm* constants.
For the PrintScaling use the kps* constants.
See also SetPrintSettings function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
// set maximum resolution
bBool = pdf.SetResolution(150)
See also SetResolution function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Example:
dim pdf as DynaPDFMBS // your DynaPDF object
dim bBool as Boolean
// whether you want image to be recompressed
bBool=pdf.SetSaveNewImageFormat(False)
See also SetSaveNewImageFormat function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetSeparationInfo function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 14.0 | Yes | Yes | Yes | Yes | All |
Notes: Raises an exception if current color space is CMYK or Gray and not RGB.
See also:
- SetStrokeColor(ColorValue as Integer) as Boolean
- SetStrokeColor(values() as Double) as boolean
- SetStrokeColor(values() as single) as boolean
See also SetStrokeColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also:
- SetStrokeColor(ColorValue as color) as Boolean
- SetStrokeColor(values() as Double) as boolean
- SetStrokeColor(values() as single) as boolean
See also SetStrokeColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
Notes: The number of components must match.
See also:
- SetStrokeColor(ColorValue as color) as Boolean
- SetStrokeColor(ColorValue as Integer) as Boolean
- SetStrokeColor(values() as single) as boolean
See also SetStrokeColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 11.2 | Yes | Yes | Yes | Yes | All |
Notes: The number of components must match.
See also:
- SetStrokeColor(ColorValue as color) as Boolean
- SetStrokeColor(ColorValue as Integer) as Boolean
- SetStrokeColor(values() as Double) as boolean
See also SetStrokeColor function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.1 | Yes | Yes | Yes | Yes | All |
Example:
dim p as DynaPDFMBS // get a pdf object
dim colorvalues as memoryblock
colorvalues=NewMemoryBlock(3)
colorvalues.Byte(0)=255
colorvalues.Byte(1)=128
colorvalues.Byte(2)=0
if p.SetStrokeColorEx(colorvalues, 3) then
' ok
else
' failed
end if
See also:
See also SetStrokeColorEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.1 | Yes | Yes | Yes | Yes | All |
Example:
dim p as DynaPDFMBS // get a pdf object
if p.SetStrokeColorEx(255,128,0) then
' ok
else
' failed
end if
See also:
See also SetStrokeColorEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetStrokeColorSpace function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetTabLen function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetTextDrawMode function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
Notes: The Value and the DefValue strings are converted to unicode.
See also SetTextFieldValue function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.3 | Yes | Yes | Yes | Yes | All |
See also SetTextFieldValue function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.3 | Yes | Yes | Yes | Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 9.3 | Yes | Yes | Yes | Yes | All |
See also SetTextFieldValueEx function in DynaPDF manual.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | DynaPDF | MBS DynaPDF Plugin | 8.0 | Yes | Yes | Yes | Yes | All |
See also SetTextRect function in DynaPDF manual.
The items on this page are in the following plugins: MBS DynaPDF Plugin.

Links
MBS Xojo Plugins