I need save it in memory as searchable pdf.
'acquires image from scanner
gdpi_ima = pGdPicture.TwainAcquireToGdPictureImage(Handle)
'save page as byte array (without ocr)
pGdPicture.SaveAsByteArray(ImageID, b, b_read, GdPicture10.DocumentFormat.DocumentFormatTIFF, cCompresionTIFF)
How can i save it in MEMORY as a searchable pdf??
I need it with ocr.
thanks in advance
You need to:
1. create a GdPicturePDF object using GdPicturePDF.New()
2. Add your images one by one to the GdPicturePDF you created (please see Tiff to PDF sample demo for the code).
3. Finally, you can save the resulting PDF to memory using any of the SaveToStream overloads of the GdPicturePDF instance.
I hope this helps,
Who is online
Users browsing this forum: No registered users and 1 guest