Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
DynaPDF.SetCMapDir
The function sets a search path from which external CMap files can be loaded.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
DynaPDF | 4.2 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "DynaPDF.SetCMapDir"; PDF; Path { ; Flags } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
The PDF reference returned from DynaPDF.New. | |||
Path | Absolute native path to the folder. | $path | |
Flags | The flags to use. Can be Default, Recursive or Delayed. |
"Default" | Optional |
Result
Returns number of CMaps or error.
Description
The function sets a search path from which external CMap files can be loaded.You can use Path.FileMakerPathToNativePath to convert paths if needed.
Requires DynaPDF Lite or Pro license.
See also SetCMapDir function in DynaPDF manual.
Examples
Set CMAP file:
Set Variable [ $r; Value: MBS("DynaPDF.SetCMapDir"; $pdf; "/Users/cs/Desktop/samples/CMap"; "Recursive") ]
See also
- DynaPDF.ExtractDocumentText
- DynaPDF.ExtractText
- DynaPDF.Initialize
- DynaPDF.New
- DynaPDF.SetFieldFont
- DynaPDF.SetTrapped
- Path.FileMakerPathToNativePath
Release notes
- Version 11.0
- Fixed DynaPDF.SetCMapDir to return number of CMaps loaded instead of OK.
Blog Entries
This function checks for a license.
Created 18th August 2014, last changed 14th November 2021