DynaPDF Manual - Page 229

Previous Page 228   Index   Next Page 230

Function Reference
Page 229 of 839
}
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]);
}
ConvToUnicode
Syntax:
UI16* pdfConvToUnicode(
const PPDF* IPDF,
// Instance pointer
const char* AString, // Null-terminated string
TCodepage CP)
// Used base encoding
typedef enum
{
cp1250,
// Eastern European
cp1251,
// Cyrillic
cp1252,
// Latin 1 Western European
cp1253,
// Greek
cp1254,
// Turkish
cp1255,
// Hebrew
cp1256,
// Arabic
cp1257,
// Baltic
cp1258,
// Vietnamese
cp8859_2,
// Latin 2 Central Europe
cp8859_3,
// Latin 3 Maltese
cp8859_4,
// Baltic
cp8859_5,
// Cyrillic
cp8859_6,
// Arabic
cp8859_7,
// Greek
cp8859_8,
// Hebrew
cp8859_9,
// Latin 5 Turkish
cp8859_10,
// Latin 6 Nordic Area
cp8859_13,
// Latin 7 Baltic Rim
cp8859_14,
// Latin 8 Celtic
cp8859_15,
// Latin 9 French
cp8859_16,
// Latin 10 Hungarian
 

Previous topic: ConvertEMFSpool

Next topic: CopyChoiceValues