I have a pdf file on my local machine and I want to compare it with my http response which is in pdf format. I am new to this and I have no idea how to do it. Can someone please suggest how can I do it. Please find below my code:
/******Get the document********/
String urlDoc = "https://abcd/v1/requests/"+order.request.id+"/"+"document";
HttpWebRequest requestDoc = (HttpWebRequest)WebRequest.Create(urlDoc);
requestDoc.Headers.Add("authorization", id_token);
requestDoc.Method = "GET";
var webResponse4 = requestDoc.GetResponse();
var webStream4 = webResponse4.GetResponseStream();
var responseReader4 = new StreamReader(webStream4);
var response4 = responseReader4.ReadToEnd();
Report.Success("Response : " + response4.ToString());
Request reqs = JsonConvert.DeserializeObject<Request>(response4);
// Clean up the streams.
responseReader4.Close();
Output of this is in pdf format.