- 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);
}
