Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 241

Previous Page 240   Index   Next Page 242

Function Reference
Page 241 of 750
SI32 pdfCreateHideAction(
const PPDF* IPDF, // Instance pointer
UI32 AField,
// Field handle of a field that should be hidden
// Hide or unhide the fields?
A hide action hides or shows one or more interactive form fields on screen by setting or clearing
their hidden flags. The parameter AField must be a valid field handle. If the parameter Hide is true,
the fields become invisible. If Hide is false, the fields become visible if their hidden flag was set
To add more fields to the action use the function AddFieldToHideAction(). Actions must be added to
a PDF object with AddActionToObj().
Return values:
If the function succeeds the return value is the action handle, a value greater or equal zero. If the
function fails the return value is a negative error code.
SI32 pdfCreateICCBasedColorSpace(
const PPDF* IPDF,
// Instance pointer
const char* ICCProfile) // File path of an ICC profile
The function creates an ICC-based color space. ICC-based color spaces (PDF 1.3) are based on a
cross-platform color profile as defined by the International Color Consortium (ICC). Unlike the
CalGray, CalRGB, and Lab color spaces, which are characterized by entries in the color space
dictionary, an ICC-based color space is characterized by a sequence of bytes in a standard format.
An ICC profile describes the color characteristics of a particular device and it provides necessary
information to convert color data between native device color spaces and device independent color
spaces. The ICC specification classifies color devices according to their use as input or output devices
such as monitors, scanners, cameras or printers. Depending on the output PDF format different
device classes are supported.
Supported device classes in PDF 1.3 or higher and PDF/A-1:
scnr -> Scanners
mntr -> Monitors
prtr -> Printers
spac -> Color conversion profile
Supported device classes in PDF/X-1 and PDF/X-3:

Previous topic: Field names and Group fields

Next topic: CreateImage