DynaPDF Manual - Page 664
Previous Page 663 Index Next Page 665
Function Reference
Page 664 of 839
The flags gfUseImageColorSpace, gfIgnoreICCProfiles, gfRealPassThrough, and gfNoBitmapAlpha
are all supported. See SetGStateFlags() for further information.
Remarks:
This function is implemented in an Ansi and Unicode compatible version. Unicode paths are
converted to UTF-8 on non-Windows operating systems.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ReplaceImageEx
Syntax:
LBOOL pdfReplaceImageEx(
const PPDF* IPDF,
// Instance pointer
const PIMG* Source,
// Pointer of the image object
const void* Buffer,
// Pointer to image buffer
UI32 BufSize,
// Buffer size in bytes
UI32 Index,
// The first image is denoted by 1
TExtColorSpace CS,
// Image color space
SI32 CSHandle,
// Color space handle or -1 for device spaces
TReplaceImageFlags Flags) // See below.
The function replaces an image with a new image exactly like ReplaceImage() but accepts a file
buffer as input. See ReplaceImage() for further information.
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
ReplacePageText
Syntax:
LBOOL pdfReplacePageText(
const PPDF* IPDF,
// Instance pointer
const char* NewText,
// The text or NULL to delete the string
struct TPDFStack* Stack) // Operation stack
The function deletes or replaces a text string of a content stream that was found by the function
GetPageText() beforehand. If NewText is NULL the string will be deleted. The deletion of strings is
possible independent of the used font format.
However, if you want to replace a string with a new one you must check the members Embedded and
CIDFont of the structure TPDFStack to determine whether the font is not embedded and that no CID
font is in use. Because the function does not more than replacing the original string value with the
new one, it is recommended that the used font is not embedded. Embedded fonts are usually stored
as subset; only the used characters are embedded. If the new string contains characters which are
Previous topic: ReplaceImage
Next topic: ReplacePageTextEx