CreateGdPictureImageFromByteArray with PDF

Discussions about image processing and document imaging.
Post Reply
rens012
Posts: 6
Joined: Thu Jul 23, 2009 11:33 am

CreateGdPictureImageFromByteArray with PDF

Post by rens012 » Thu Jul 23, 2009 11:39 am

Hi,

I have the following code:

int ImageID = oGdPictureImaging.CreateGdPictureImageFromByteArray(ref file);

oGdPictureImaging.PdfAddGdPictureImageToPdfOCR(PdfID, ImageID, TesseractDictionary.TesseractDictionaryDutch, "C:\\Program Files\\GdPicture.NET\\Redist\\OCR", "");

oGdPictureImaging.PdfOCRStop(PdfID);

The CreateGdPictureImageFromByteArray return a 0. the byte array contains a PDF file.
Is it impossible to create a gdpicture image from a PDF byte array?

Thanks.

rens012
Posts: 6
Joined: Thu Jul 23, 2009 11:33 am

Re: CreateGdPictureImageFromByteArray with PDF

Post by rens012 » Thu Jul 23, 2009 12:11 pm

Ok, I found in the manual that gdpictures cannot be created from pdf.

This means that i have to use the gdviewer to create an OCR'd pdf from a pdf file. (with the PdfRenderPageToGdPictureImage function)

This is a problem, as i'm not building a forms application. Is there any other way?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: CreateGdPictureImageFromByteArray with PDF

Post by Loïc » Sun Jul 26, 2009 5:21 pm

Hi,

This feature is pained for a major update: GdPicture.NET 6.5 (should be available within 2 or 3 months).

With best regards,

Loïc

rens012
Posts: 6
Joined: Thu Jul 23, 2009 11:33 am

Re: CreateGdPictureImageFromByteArray with PDF

Post by rens012 » Thu Dec 03, 2009 5:13 pm

Hi Loïc,

I downloaded the new 6.5 version. But it seems I still can't create a searchable PDF from an existing PDF file with just the GdPictureImaging class.

Can you help me out?

Kind regards,

Rens

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: CreateGdPictureImageFromByteArray with PDF

Post by Loïc » Thu Dec 03, 2009 5:21 pm

Hi,

This feature have been reported to GdPicture.NET 6.6, we got too many troubles with the current beta implementation.

However, you can use the GdViewer class in formless process, just implement is like

Code: Select all

Dim oGdViewer as GdViewer = New GdViewer
Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests