'JPEGMemoryAllocationSize Example
Set TK = CreateObject("APToolkit.Object")
r = TK.OpenOutputFile("JPEGMemoryAllocationSize.pdf")
'Check the current memory size for JPEG images
'if less than or equal to 16384 set it to 32768
If TK.JPEGMemoryAllocationSize <= 16384 Then
TK.JPEGMemoryAllocationSize = 32768
End If