I have been using the following code for a while and now the new adobe reader is causing an error
"file does not begin with '%PDF-'.
Since I'm streaming the file and not creating it and saving it. How can I get the new adobe reader to see my pdf header correctly?
None of the answers on line help because they save a file as a pdf.
Imports System.Data
Imports System.Data.SqlClient
Imports System.Data.DataSet
Imports PdfSharp
Imports PdfSharp.Drawing
Imports PdfSharp.Pdf
Imports PdfSharp.Pdf.IO
Imports PdfSharp.Drawing.Layout
Partial Class PDFEnvelope
Inherits System.Web.UI.Page
Protected Function getNewPage() As PdfPage
Dim page As New PdfPage()
Dim pdfWidth As New XUnit(4.125, XGraphicsUnit.Inch)
Dim pdfHeight As New XUnit(9.5, XGraphicsUnit.Inch)
page.Height = pdfHeight
page.Width = pdfWidth
page.Orientation = PageOrientation.Landscape
...
Go to the complete details ...