DynaPDF Manual - Page 250
Previous Page 249 Index Next Page 251

Function Reference
Page 250 of 874
}
int main(int argc, char* argv[])
{
if (argc < 2) return -1;
void* pdf = pdfNewPDF();
if (!pdf) return -2; // Out of memory?
pdfSetOnErrorProc(pdf, NULL, PDFError);
// The resolution is used for images. 300 or 600 DPI are recommended.
pdfSetResolution(pdf, 600);
pdfSetCompressionFilter(pdf, cfFlate); // Default
pdfSetColorSpace(pdf, csDeviceRGB);
// Default
pdfSetPageCoords(pdf, pcTopDown);
// Recommended
// The page format should be set to the value of the DEVMODE structure.
pdfSetPageFormat(pdf, pfDIN_A4);
return ConvertSpoolFile(pdf, argv[1]);
}
ConvToFreeTextCallout
Syntax:
LBOOL ConvToFreeTextCallout(
const PPDF* IPDF,
// Instance pointer
UI32 Handle,
// Handle of a FreeText annotation
float StartX,
// Start point of the callout line
float StartY,
// Start point of the callout line
float KneeOffset,
// Knee offset -> see description
TLineEndStyle EndStyle) // End line style of the callout line
The function converts a regular FreeText annotation to a FreeTextCallout annotation. The parameter
Handle must be a valid handle of a FreeText or FreeTextCallout annotation. A FreeText annotation
can be created with the function FreeTextAnnot().
KneeOffset
This is a FreeTextCallout
Annotation!
StartX/Y
The callout line is drawn on the side whose distance to the start point is the shortest.
Remarks:
The FreeTextCallout tool in Adobes Acrobat restricts the position on which the text rectangle of
the FreeText annotation can be placed. The callout line including the line end style cannot cross
this rectangle. If this would be the case then Acrobat adjusts the position of the text rectangle so
Previous topic: ConvertEMFSpool
Next topic: ConvToUnicode