DynaPDF Manual - Page 253

Previous Page 252   Index   Next Page 254

Function Reference
Page 253 of 787
When the function is used to create images from the rasterizer, the supported pixel formats of the
output image format must be considered. The following table specifies which combinations are
valid:
Image Format
Supported Pixel Formats
BMP (Bitmap)
pxf1Bit, pxfGray, pxfBGR, pxfBGRA
JPEG
pxfGray, pxfRGB, pxfRGBA
JPEG 2000 (JPC)
pxf1Bit, pxfGray, pxfRGB
PNG
pxf1Bit, pxfGray, pxfRGB, pxfRGBA
TIFF
pxf1Bit, pxfGray, pxfRGB, pxfRGBA
Remarks:
CreateImage() can be used in combination with ParseContent() or RenderPage() and AddImage().
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
CreateImportDataAction
Syntax:
SI32 pdfCreateImpDataAction(
const PPDF* IPDF,
// Instance pointer
const char* DataFile) // File path to FDF file
An import data action imports FDF data into the document's interactive form. FDF data files are
normally created by Adobe's Acrobat when submitting a form to a web server.
Note that the XML based format XFDF is not supported by Adobe's Acrobat.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. However, because
Acrobat does not support Unicode strings as file paths, the path is converted back to Ansi. A
Unicode string must not contain characters outside of the code page 1252.
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.
 

Previous topic: CreateICCBasedColorSpaceEx, CreateImage

Next topic: CreateIndexedColorSpace

Start Chat