Loading...

GdPictureImaging Loading PDF Image

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

GdPictureImaging Loading PDF Image

Postby Bubba » Tue Feb 23, 2010 6:35 pm

Code: Select all
imageID = oGdPictureImaging.CreateGdPictureImageFromFile(FilePath);


According to the documentation, PDF's aren't handled by this function. Is my only recourse then, to create a GDViewer, load the PDF, convert the Viewer PDF Image to a GDPicture image, transfer that image over to the GdPictureImaging, and then destroy the GDViewer?

Ultimately, I desire a simple way to load a PDF into a GdPictureImaging Object for manipulation and subsequent OCR. I "might" display the results to the user, but 95% of the time, I have no use case that would involve the GDViewer.

I am evaluating the "GdPicture ToolKit Pro Edition" with the "Tesseract OCR" plugin. My "desired but not working" file loading method is (in C#):
Code: Select all
        public void loadImage(string FilePath){
            txtBxFileName.Text = FilePath;
            imageID = oGdPictureImaging.CreateGdPictureImageFromFile(FilePath);
            oGdPictureImaging.ConvertTo1BppFast(imageID);
        }
Bubba
 
Posts: 5
Joined: Mon Feb 22, 2010 10:05 pm

Re: GdPictureImaging Loading PDF Image

Postby Loïc » Wed Feb 24, 2010 10:04 am

Hi,

Loading PDF file through the Imaging class is not yet supported. as you said, you have to use the GdViewer to apply conversion.
This feature should be available within few month.

With best regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

Re: GdPictureImaging Loading PDF Image

Postby Bubba » Thu Feb 25, 2010 10:24 pm

I am now struggling with getting the imageID from the GDViewer when the original image loaded was/is not a PDF.

My thought was, given that the imaging object doesn't support loading PDF's, that I would simply load "everything" into an oGDViewer initially, and then get an imageID from the viewer to pass to the oGdPictureImaging object. This works find for PDF's, but oGdViewer.PdfRenderPageToGdPictureImage(72, 1); doesn't work if the original was/is not a PDF. I don't see any other methods nor properties available to get a GdPictureImage from oGdViewer if the original document is, say, a TIFF or PNG.
Bubba
 
Posts: 5
Joined: Mon Feb 22, 2010 10:05 pm

Re: GdPictureImaging Loading PDF Image

Postby Loïc » Fri Feb 26, 2010 9:35 am

Hi,

I don't see any other methods nor properties available to get a GdPictureImage from oGdViewer if the original document is, say, a TIFF or PNG.

Code: Select all
Imaging1.SetNativeImage(GdViewer1.GetNativeImage)


Kind regards,

Loïc
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron