B&W and greyscale pdf error
hi, i'm writing an utility to scan documents thru twain then convert them to pdf with fly2pdf. With color images it does work perfectly but with B&W/Grayscale ones i'm having troubles. fly2pdf creates the PDF but when I gonna open it, Adobe acrobat reader show an error indicating (in spanish) "Datos insuficientes para una imagen" (in english somethin like this: "Insufficient data for an image") and a blank document appears (the pdf contains nothing but images). I pointed into this function:
docContent.Image strFileNames(i), xImage, yImage, wImage, hImage, , FileConfig.defDirectMethod
strFilenames(i) sets the file (bucle)
FileConfig.defDirectMethod is boolean var, if set "True", creating pdf works very fast (with color mode, 280KB one A4 at 150 DPI color); if set "True" but with B&W/greyscale images it Fails with previously mentioned error at reader opening file; and if set "False" created pdf are VERY big (around 12MB one A4 at 150 dpi B&W).
Why do this occurs? some idea?
(Note: I'm generating images as JPG)
sorry about my english