Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Oct 01, 2015 4:09 pm

I'm working on loading a pdf from the database.

I have the data as a byte array, and I want to get that into a PdfDocument object.

How can I accomplish this? It seems like the LoadFromStream() method isn't around, at least it doesn't come up in my intellisense (because using free version?). Nonetheless, it is referenced in this documentation: e-iceblue.com/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Document-Operation/Save-PDF-file-to-Stream-and-Load-PDF-file-from-Stream-in-C-.NET.html. Additionally, the bottom of the page at that link says there is a direct way to do this with a byte array, but then just links to the general documentation, so I don't know where to find it.

So, in summary, how can I make a PdfDocument object using a byte array of data?

Thanks in advance.

scotthclearspaninc
 
Posts: 4
Joined: Sat Aug 01, 2015 5:23 pm

Fri Oct 02, 2015 3:58 am

Hello,

Thanks for your inquiry.
Please try to use our commercial version (Spire.PDF Pack(Hot Fix) Version:3.5.51), you can find method Pdfdocument.LoadFromBytes().

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Oct 09, 2015 8:24 am

Hello,

Have you tried the version I mentioned ? Has your issue been resolved ?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Mon Oct 12, 2015 1:11 pm

Yes, it was indeed a matter of using the commercial version.

Thanks.

scotthclearspaninc
 
Posts: 4
Joined: Sat Aug 01, 2015 5:23 pm

Tue Oct 13, 2015 1:23 am

Hello,

Thanks for your feedback.
Please feel free to contact us if you have any question.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.PDF