PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

MigraDoc with Edge Chromium
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4222
Page 1 of 1

Author:  southbd [ Tue Jan 12, 2021 8:09 pm ]
Post subject:  MigraDoc with Edge Chromium

we have recently upgraded to Edge Chromium as a default browser. when doing so our MigraDoc PDF creations no longer render a PDF. the pages are now just opening in Visual Studio and showing what i'm assuming is the native MigraDoc code. not sure what version of MigraDoc we have but will the newest version run under Edge Chromium ?

Author:  TH-Soft [ Wed Jan 13, 2021 9:58 am ]
Post subject:  Re: MigraDoc with Edge Chromium

MigraDoc does not run under any web browser. You can use MigraDoc on web servers.
The web server is responsible for data sent to the browser, not MigraDoc. Upgrading MigraDoc probably will not make any difference.

Could it be that Edge displays the PDF file as a text file, not PDF? Then maybe your web server must specify a different content disposition.

Author:  southbd [ Wed Jan 13, 2021 2:41 pm ]
Post subject:  Re: MigraDoc with Edge Chromium

thanks for the response. i think you're on the right track. i did some testing of the page (C#) and it seems that edge is losing the ContentType. we set that to "application/pdf" but when edge opens it, it's in the .aspx type. preliminary still but it seems like edge has a bug...

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/