Load an PDF FIle to a c# DataTable or any similar Object

hello,

I need to load an PDF file in a Dataset and read the Datatable(s) .

From there i'm good to parse the data I need.. do you guys have a way to load the data in DataSet or any other Object.. a c# sample will be gratly appreciated.

Thanks

We don’t support load Aspose.Pdf objects into database. You can only load the file as binary array.

any exemple or sample of code acheive that ???

We can not implement the required function shortly, so I am afraid we can not provide code or sampes as well.

If you mean how to load byte array, here is an example:

//create the pdf object
Pdf pdf1 = new Pdf();

//add contents to the pdf
//...

//create a memory stream
MemoryStream ms = new MemoryStream();

//Save the pdf into stream
pdf1.Save(ms);

//get byte array
byte[] arr = ms.GetBuffer();

//save the byte array into DB
//...

//if you want to modify the pdf
//load the byte array from DB
byte[] arr = GetObjArrayFromDB();

//create the memory stream
MemoryStream ms = new MemoryStream(arr);

//modify the document with Aspose.Pdf.Kit,using ms as parameter
//...

I don't know if this is what you want. If you have more question please let us know.