User login

Who's online

There are currently 1 user and 66 guests online.

Online users

Advertisements


SourceForge.net Logo

B&W and greyscale pdf error

Submitted by palaman on Tue, 2007-02-27 14:12.

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

Submitted by thesmilyface on Fri, 2007-03-02 21:15.

There was a bug in the jpeg implentation (no support for greyscaled jpeg images). Please try the new version.

Frank

© 2006 by pdfforge.org :: Contact us

Validate XHTML or CSS.