The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I'm using the PDF component to load a stream from the database (SQL Server 2008). The stream in the database is stored as binary data type. Each stream has different contents and represent different file types e.g. .pdf, .doc, .jpg, .xls
I wrote a function to load the stream into a new PDF object.
== Dim pdf As New Syncfusion.Pdf.Parsing.PdfLoadedDocument(strm) pdf.Save("C:\lab\output.pdf")
pdf.Close() pdf = Nothing ==
On the first line above, it would fail to load most time citing "Invalid/Unknown/Unsupported format". I noticed that when I loaded a stream that was a PDF file type, it would save. Any other types like .doc, .xls or .jpg, it would not save.
Can you please confirm if the stream is supposed to be a PDF type?
Is there any way I can 'convert' the stream to a PDF type so I can save it as a PDF?